asked 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.

asked
User Alise
by
8.6k points

2 Answers

12 votes

Answer:

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

Step-by-step explanation:

Edg 2021

answered
User Antonok
by
8.6k points
10 votes

Answer:

It stores an int in the variable.

Step-by-step explanation:

answered
User Bert Bruynooghe
by
8.6k points