Computers and Technology
22.03.2022 17:04
271
324
10
Solved by an expert

What is wrong with this code? This is python by the way import random count = 1

What is wrong with this code? This is python by the way import random
count = 1
secret = random.randint(1,100)
guess = int(input("Try to guess the secret number."))
while guess != secret:
if guess secret:
guess = int(input("Too low. Try again."))
elif guess secret:
guess = int(input("Too high. Try again."))
count = count + 1
print("Congratulations! You’ve guessed the secret number. It took you", count, "times.")
Show Answers
Kameon
Kameon
4,8(65 marks)

Answer : False.

The function to total the values stored in numeric columns is the SUM function.

Popular Questions about the subject: Computers and Technology

5. Convert the following values: a. One inch = millimeters b. 12 meters = yards...
Computers and Technology
29.11.2021 07:15
Which of the following terms best describes the product development process?...
Computers and Technology
27.07.2020 04:10
What is true about connectionless packet switched networks? a. each datagram must...
Computers and Technology
17.04.2020 08:07
A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons...
Computers and Technology
02.04.2021 18:29
PYTHON CODE:::PLEASE HELP Overview Write a program to draw something fun or creative...
Computers and Technology
05.04.2021 08:50
Questione किसान ट्यूबवेल नहीं लगा पाता --- सीवर की निकासी रुक गई है। जमीन में केमिकल...
Computers and Technology
17.08.2021 12:13
What is the difference between the animation with shape hints and the animation...
Computers and Technology
04.06.2023 07:30
Which is not a communications media? 1. wire 2.microwave 3.satellite 4. NIC​...
Computers and Technology
11.10.2021 16:34
Briefly discuss the aesthetics and ergonomics of a hydraulic jack. First explain...
Computers and Technology
21.09.2020 02:01
You have been asked to fix a traffic light. You discovered that the traffic light...
Computers and Technology
04.07.2021 09:43

New questions by subject

True or False Very few faults occur along plate boundaries...
Chemistry
04.05.2023 04:36
PLS HELP !! I NEED HELP RLY RLY BAD WITH THUS MATH- pls print out and send me the...
Mathematics
28.01.2023 23:31
Christmas is actually lit...
Arts
15.10.2022 04:35
What is the answer to -4 + c = -11...
Mathematics
29.05.2020 06:37
9.4+___=3.2z-4.5+___ what am i adding to both sides ..?...
Mathematics
16.12.2022 15:02
#
#
#
#
# #

We expand our knowledge with many expert answers