Question: Guess my number. Write a robust program that randomly selects a number 1through 100 and asks the user to guess the number. At each guess

Guess my number. Write a robust program that randomly selects a number 1through 100 and asks the user to guess the number. At each guess the user should be told if the guess is proper, and if so, whether it is too high or too low. The user should be told of the number of guesses when finally guessing the correct number. Please complete in notepad++ then save in .py Complete your program design(flow chart, Pseudocode,or other). Save the finished project as a .pyfile import random ran_num = random.randint(1,101) print(ran_num) user_guess = int(input("Enter a number between 1 and 100 : ")) guess_count = 1 while user_guess != ran_num: if user_guess > ran_num: print("user guess is too high ") if user_guess < ran_num: print("user guess is too low") guess_count += 1 user_guess = int(input("Again enter a number between 1 and 100 :")) print("total no of guess count",guess_count) This program will not run properly. Keeps giving and error message=expected an indented block

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!