In the given code, finalScore
is assigned the result of float(input("What was your final score?"))
. Here, input()
returns a string, and float()
converts that string to a floating-point number.
Therefore, finalScore
is:
a float
finalScore = float(input("What was your final score?"))
(1 point)
Responses
an integer
an integer
a string
a string
a float
a float
a Boolean
a Boolean
1 answer
In the given code, finalScore
is assigned the result of float(input("What was your final score?"))
. Here, input()
returns a string, and float()
converts that string to a floating-point number.
Therefore, finalScore
is:
a float