1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alex
3 years ago
8

Use input() function to take 4 user inputs as variables and choose at least 2 ways to print out the following statements. You ca

nnot print the statement literally.
Computers and Technology
1 answer:
taurus [48]3 years ago
6 0

Answer:

statements = tuple(input("Enter four statements separated by comma: ").split(","))

st1, st2, st3, st4 = statements

#print with:

print(f"{st1}, {st2}, {st3}, {st4}")

# or:

print("{}, {}, {}, {}".format(st1, st2, st3, st4))

Explanation:

The input function in python is used to prompt for user input. It returns a string. The code above splits the string of the input function and converts it to a tuple, which is unpacked in four variables st1, st2, st3, and st4.

The variables can be printed out as strings directly or by using the "f" keyword or the format function.

You might be interested in
How many performance steps are involved in the process of completing a detainee?
Reika [66]
It looks like you've posted your question in wrong topic. Anyway I can help you. Performance steps for Guard Detainees and Completing a detainee are almost the same. If my memory serves me well, there are 6 performance steps. But the main rule is to be patient and ready for action. Always prepare your weapons to use, check if they are functional.
6 0
3 years ago
Do you think YouTube is an effective social media platform for professionals? Why or why not?
Tomtit [17]
Yes because if someone needs help with someone they could just look for a professionals to see what to do and all that stuff

You will get the picture
6 0
4 years ago
There are N rectangular buildings standing along the road next to each other. The K-th building is of size H[K] × 1.
Sphinxa [80]

Answer:

# you can write to stdout for debugging purposes, e.g.

# print("this is a debug message")

def solution(H):

   # write your code in Python 3.6

   

   # return area of atmost 2 banners

   # 1 banner

   # maximum height * number of buildings

   single_banner = max(H) * len(H)

   smallest_area = single_banner

   

   

   # 2 banner

   for i in range(1, len(H)):

       double_banner = (max(H[0:i]) * len(H[0:i])) + (max(H[i:]) * len(H[i:]))

       if  double_banner < smallest_area:

           smallest_area = double_banner

   

   return smallest_area

8 0
4 years ago
I WILL GIVE YOU BRAINIEST IF YOU GIVE A GOOD ANSWER
Elodia [21]

Answer:

5 Ways to Practice Green Computing

Buy "Energy Star" labeled monitors, desktops, laptops, and printers . ...

Put laptops in "sleep" mode when not in use. ...

Even better, turn OFF computers and other equipment when not in use. ...

E-cycle used computer equipment. ...

Buy the new "Smart Strip" power strip.

Explanation:

3 0
3 years ago
What educational site could I make a screen capture tutorial on? I need ideas for a school project.
snow_tiger [21]

You Need Software To Screen Capture

The Software You can use is OBS its free and there are watermarks

4 0
3 years ago
Other questions:
  • A.<br> Post-It note<br> b.<br> notebook<br> c.<br> tutor<br> d.<br> spell check
    14·1 answer
  • Systems thinking includes consideration of all of the following EXCEPT
    9·1 answer
  • The final step of the DHCP Discovery process is known as...
    8·1 answer
  • Complete the PizzaCaloriesPerSlice() function to compute the calories for a single slice of pizza. A PizzaCalories() function re
    6·1 answer
  • write a program that first asks the user to enter three real numbers using GUI input. Print the sum if all three numbers are pos
    7·1 answer
  • Which of the following is a hardware component used to hold the BitLocker encryption key and ensures encrypted data is not acces
    5·1 answer
  • Identify and define the various systems used in creating the Technological Systems.
    15·1 answer
  • When creating a storyboard, in which section do you mention how you move from one shot to the next?
    8·1 answer
  • The term platform as a service has generally meant a package of security services offered by a service provider that offloads mu
    9·1 answer
  • declaring a member as in the base class provides access to that member in the derived classes but not to anyone else.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!