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 15:30
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
*! 20 points! *jeff wants to create a website with interactive and dynamic content. which programming language will he use? a. dhtml b. html c. css d. javascript
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
Which of the statements below describe the guidelines for the use of text in presentation programs? a. do not use numbered lists. b. fonts should be appropriate for your audience. c. limit the number of fonts you use to three or four. d. only use bulleted lists for sales promotions. e. select font sizes that are appropriate for your delivery method. f. use font colors that work well with your background. select all that apply
Answers: 1
question
Computers and Technology, 25.06.2019 10:00
Aline ab is in 1st quadrant , its ends a and b respectively are 20mm and 60mm infront of vp respectively . the distance between the end projectors is 75 mm . the line is inclined at 30 degrees to the hp and end a 20 degrees above the hp . draw its projections , find true length
Answers: 2
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, 07.12.2020 20:40
question
Social Studies, 07.12.2020 20:40
question
Mathematics, 07.12.2020 20:40
question
Computers and Technology, 07.12.2020 20:40
question
Mathematics, 07.12.2020 20:40
question
Mathematics, 07.12.2020 20:40
Questions on the website: 13722367