subject

You wrote a program to allow the user to guess a number. Complete the code. while keepGoing:
guess = input("Guess an integer from 1 to 10: ")
guess = int(guess)
attempts = attempts + 1
if guess == correct:
print("You were correct!")
keepGoing =
else:
if guess < correct:
print("Guess higher.")
else:
print("Guess lower. ")

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:00
Meenu wants to create a high quality drawing in a variety of colours. which device should she use for the same?
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
Me ajude por favor , coloquei uma senha e não consigo tira-la no chorme
Answers: 2
question
Computers and Technology, 24.06.2019 09:50
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
You know the right answer?
You wrote a program to allow the user to guess a number. Complete the code. while keepGoing:
...
Questions
question
Mathematics, 25.01.2020 00:31
question
Mathematics, 25.01.2020 00:31
question
Mathematics, 25.01.2020 00:31
question
Computers and Technology, 25.01.2020 00:31
Questions on the website: 13722363