60.1k views
17 votes
What does the following line of code do? Assume the user enters 2.3.

answerA = input("Enter a number. ")

It stores an int in the variable.

It stores a string in the variable.

It stores a float in the variable.

This line of code causes an error.

User Alise
by
3.7k points

2 Answers

12 votes

Answer:

It will store an int (Integer) into the variable.

Step-by-step explanation:

Edg 2021

User Antonok
by
3.3k points
10 votes

Answer:

It stores an int in the variable.

Step-by-step explanation:

User Bert Bruynooghe
by
3.4k points