'F' → Fullscreen
Create a new Python program named 1-14-number-guessing-game.
import random
secret_number = random.randint(1, 10)guess = 0tries = 0import random
secret_number = random.randint(1, 10)guess = 0tries = 0
while guess != secret_number: guess = int(input("Guess the number (1-10):")) tries = tries + 1
if guess == secret_number: print(f"Correct! It took you {tries} tries!") elif guess > secret_number: print("Wrong! Your guess was too high.") elif guess < secret_number: print("Wrong! Your guess was too low.")import random
secret_number = random.randint(1, 10)guess = 0tries = 0
while guess != secret_number: guess = int(input("Guess the number (1-10):")) tries = tries + 1
if guess == secret_number: print(f"Correct! It took you {tries} tries!") elif guess < 1 or guess > 10: print("Your guess was out of range.") elif guess > secret_number: print("Wrong! Your guess was too high.") elif guess < secret_number: print("Wrong! Your guess was too low.")Verify your program works correctly.
Guess the number (1-10): 6 [Enter]Wrong! Your guess was too high.Guess the number (1-10): 3 [Enter]Wrong! Your guess was too low.Guess the number (1-10): 5 [Enter]Wrong! Your guess was too high.Guess the number (1-10): 4 [Enter]Correct! It took you 4 tries!Answer the following questions before submitting your work.
while loop check to decide whether to keep asking for another guess?guess need to start at a value like 0, which could never actually be the secret number?else branch to catch invalid input, the way the archive it's based on did?Submit the required files to the appropriate dropbox.