(Oct-03-2021, 10:07 AM)chickenseizuresalad Wrote: was to create a program which repeatedly asks the user for a number until they enter a 10.Be this requirement need to use a
while loop
.Then the basic will like this,they to not ask for lower and higher but you can add that if task say that later.
stop_number = 10 while True: number = int(input("Enter a 10: ")) if number == stop_number: print(f"{number} entered exit out") break else: print(f"Wrong number <{number}> try again")
Yoriz write Oct-03-2021, 10:47 AM:
Homework question, give the op a chance to carry on trying to solve this their self now the current error has been rectified.
Homework question, give the op a chance to carry on trying to solve this their self now the current error has been rectified.