Computers and Technology

WHY ISN"T IT C!? Which line of code will only allow a non-decimal point to be stored in a variable?

a. candyCost = float(input("How much is the candy?"))

b. candyCost = input("How much is the candy?")

c. candyCost = int(input("How much is the candy?"))

d. candyCost = str(input("How much is the candy?"))

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:00, eguzmandpandoracom
How do we use the sumif formula (when dealing with different formats) ?
Answers: 1
image
Computers and Technology, 23.06.2019 04:40, Koriunaa
The narrative structure of the popular movies can be broken down into
Answers: 3
image
Computers and Technology, 23.06.2019 06:20, kiarakagni
What is a point-in-time measurement of system performance?
Answers: 3
image
Computers and Technology, 23.06.2019 13:30, juliajordan427
Best laptops for college [$100-$500 range]?
Answers: 2
Do you know the correct answer?
WHY ISN"T IT C!? Which line of code will only allow a non-decimal point to be stored in a variable?...

Questions in other subjects:

Konu
Chemistry, 20.11.2020 20:50
Konu
Mathematics, 20.11.2020 20:50
Konu
Mathematics, 20.11.2020 20:50