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 are true of multicellular organisms
Someone pls help me the answer choices are . increase , decrease, or remain the same
What rights were clearly inspired by the Enlightenment?
d. What do you think are the qualities of men that helped them to form better and better societies to reach to this modern society and animals remain wild?​
what is prefix of major?​
Which expression is equivalent to 4. 8 + 2. 2w - 1. 4w + 2. 4 ?
What details does the astrologer give Guru Nayak about his past? (An Astrologer’s Day)
Define symbol and valency?​
A farmer plants the same amount every day, adding up to 4 1/2 acres at the end of the year. If the year is 2/3 over, how many acres has the farmer planted
What test is used to ensure that the results you expect are the same as the results you are observing?A. Epistatic testB. Chi-squared testC. Observational confi