Which line of code will only allow a non-decimal point to be stored in a variable?
A candyCost = int(input("How much is the candy?"))
B candyCost = input("How much is the candy?")
C candyCost = float(input("How much is the candy?"))
D candyCost = str(input("How much is the candy?"))
Answers
Answered by
10
Answer:
The 1st line of code will only allow a non-decimal point to be stored in a variable
Answered by
10
Answer:-
Option a is th answer for the question. It allows a non decimal number to be stored in a variable.
Similar questions