Write pseudocode for a Python program that uses iteration to guess a number from 1 to 10 that matches the computer’s number. Enter a name, the computer selects a number, users guess a number, and they keep guessing until they correctly guess the computer’s number. Turn in the pseudocode, Python program, and a screenshot of your output. Step 1: Ask the player to enter a name or quit to exit Step 2: use a while statement to test when the name is not equal to quit Step 3: input enter a number from 1 to 10 for the variable your_guess # display the number guessed print("Your number is", your_guess) while num != your_guess: Step 4: Write an if statement for your_guess is less than num Step 5 display text with your guess and You won, name Step 6 ask the player to enter a name or quit to exit
Write pseudocode for a Python
Step 1: Ask the player to enter a name or quit to exit
Step 2: use a while statement to test when the name is not equal to quit
Step 3: input enter a number from 1 to 10 for the variable your_guess
# display the number guessed
print("Your number is", your_guess)
while num != your_guess:
Step 4: Write an if statement for your_guess is less than num
Step 5 display text with your guess and You won, name
Step 6 ask the player to enter a name or quit to exit
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images