zenamihajliv
zenamihajliv zenamihajliv
  • 09-03-2022
  • Computers and Technology
contestada

write a program that will ask the user to input a number beween 50-60​

Respuesta :

Poochymoochy
Poochymoochy Poochymoochy
  • 09-03-2022

Answer:

def main():

   askUser = int(input("Choose a number between 50-60"))

if askUser >= 50:

    if askUser <= 60:

     print("You've chosen the number " + str(int(askUser)) + "!")

else:

    print("Error, please enter a number between 50-60!")

 

main()  

Explanation:

The program asks the user to pick a number between 50-60. If they enter anything else, an error message will pop up redirecting them to choose a number only from 50-60.

Answer Link

Otras preguntas

What is the correct verb for it is very important to train your dog
Read the sentence. After they returned from the lake, they began to think about dinner. How is the word in bold being used?
Which of the following literary elements can be found in most of Arthur Conan Doyle's detective stories?A.a villainous medical doctorB.a setting that dramatical
People with _____ value assertiveness, competitiveness, and materialism. low individualism low collectivism
What does the root in repulse mean? 1. to send 2.to place 3. to drive 4. to try
(4,?) is on the line y=2x+3. Find the other half of the coordinate
Identify the colloquial speech. So, what do you wanna do tonight? a. So c. wanna b. what d. tonight
Which law used in Rome has been adapted by western democratic governments
simplify 9x^2 - 25/3x-5
How does setting a specific timeframe in which to complete a goal increase the chances of the goal being met?