Join the IDNLearn.com community and get your questions answered by knowledgeable individuals. Discover comprehensive answers to your questions from our community of knowledgeable experts.
Python, Loops:
1. Prompt the user to enter a number. Then count from 1 to the number they entered, printing each number on a separate line.
2. Have the user enter strings until they enter “Stop, please”. Then print out all of the strings they entered. (Hint use a while loop and the break function)
3. Store any number 1-100 in a variable. Then have the user try to guess the number until they get it right. If they are wrong, tell them whether their guess needs to be lower (if they guess a number greater than your number) or higher (if they guess a number lower than your number).
Sagot :
Your participation means a lot to us. Keep sharing information and solutions. This community grows thanks to the amazing contributions from members like you. Your questions deserve precise answers. Thank you for visiting IDNLearn.com, and see you again soon for more helpful information.