subject

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?"))

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:40
Design a pos circuit that displays the letters a through j on a seven-segment indicator. the circuit has four inputs w, x, y, and z which represent the last 4 bits of the uppercase ascii code for the letter to be displayed. thus, if wxyz = 0001 then "a" will be displayed. (any answer with 22 or fewer gates and inverters, not counting any for the inputs, is acceptable)
Answers: 2
question
Computers and Technology, 22.06.2019 12:30
Some of the first computer games were created in the early 1970s by college students experimenting after hours to see what the were capable of doing.
Answers: 3
question
Computers and Technology, 23.06.2019 20:30
1. for which of the following are you not required to signal beforehand? a. changing lanes b. speeding up c. stopping
Answers: 2
question
Computers and Technology, 24.06.2019 12:30
Why does the pc send out a broadcast arp prior
Answers: 1
You know the right answer?
WHY ISN"T IT C!? Which line of code will only allow a non-decimal point to be stored in a variable?...
Questions
question
Mathematics, 22.08.2019 13:20
question
Mathematics, 22.08.2019 13:20
Questions on the website: 13722360