Computers and Technology, 27.05.2021 18:30, Quidlord03
Coding: FLVS, What is the problem with the code
# Heading (name, date, and short description) feel free to use multiple lines
def main():
# Initialize variables
numGuesses = 0
userGuess = -1
secretNum = 5
name = input("Hello! What is your name?")
# Fill in the missing LOOP here.
# This loop will need run until the player has guessed the secret number.
userGuess = int(input("Guess a number between 1 and 20: "))
numGuesses = numGuesses + 1
if (userGuess < secretNum):
print("You guessed " + str(userGuess) + ". Too low.")
if (userGuess > secretNum):
print("You guessed " + str(userGuess) + ". Too high.")
# Fill in missing PRINT statement here.
# Print a single message telling the player:
# That he/she guessed the secret number
# What the secret number was
# How many guesses it took
main()
Answers: 1
Computers and Technology, 24.06.2019 08:00, nataliamontirl4230
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
Answers: 1
Computers and Technology, 24.06.2019 16:50, genyjoannerubiera
Ramp charts are generally created in wordlotusexcelpowerpoint
Answers: 1
Computers and Technology, 25.06.2019 09:30, natalieagustinlop54
Is it possible to build a portal in real life?
Answers: 2
Coding: FLVS, What is the problem with the code
# Heading (name, date, and short description) feel...
Mathematics, 29.01.2021 14:00
Business, 29.01.2021 14:00
Physics, 29.01.2021 14:00
Social Studies, 29.01.2021 14:00
English, 29.01.2021 14:00
Chemistry, 29.01.2021 14:00