What type of variable is finalScore in this code?

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

Similar Questions
  1. What type of variable is finalScore in this code?finalScore = float(input("What was your final score?")) (1 point) Responses an
    1. answers icon 1 answer
  2. What type of variable is finalScore in this code?finalScore = int(input("What was your final score?")) (1 point) Responses an
    1. answers icon 1 answer
  3. 1.If you wanted to create a line of code that would add ten to the user’s current score, which code should you use? score ==
    1. answers icon 1 answer
    1. answers icon 1 answer
more similar questions