Python, Python, Python, Python, Python, Python, Python, Python, Python, Python, Python, Python, Python, Python, Python,

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Python, Python, Python, Python, Python, Python, Python, Python, Python, Python, Python, Python, Python, Python, Python,

Post by answerhappygod »

Python, Python, Python, Python, Python, Python, Python,Python, Python, Python, Python, Python, Python, Python, Python,Python, Python, Python, Python, Python, Python, Python, Python,Python, Python, Python, Python, Python, Python, Python, Python,Python, Python, Python, Python, Python, Python, Python,Python.
Do not use any libraries or methods.
This example is focusing on Loops
This example is focusing on Loops
Loops
1.Generate a random integer number between 0 and 100.
2. Ask the user to guess the number.
3. If the number is greater than the secret number, the programneeds to show the user a message (Your number is greater).
4. If the number is less than the secret number, the programneeds to show the user a message (Your number is smaller).
5. Keep Repeating steps 2-4 until the user guesses the hiddennumber.
6. Finally, the program needs to output the number of attemptsthat the user did before guessing the correct number. Message (Youguessed the right number. You guessed the number after {}attempts).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply