Sep-22-2024, 01:59 PM
(This post was last modified: Sep-23-2024, 03:04 PM by deanhystad.)
want it so when you ask a number that inset 7 it asks you again what your number is and it keeps repeating like this
print("Guess a number between 1 and 10:") number = int(input()) if number == 7: print("You got it!") elif number < 7: print("Higher") else: print("Lower")
deanhystad write Sep-23-2024, 03:04 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.