168k views
24 votes
You entered the following line of code in IDLE.

>>> guess = input("Enter a guess: ")

This is the result.
Enter a guess: 2

What data type is the variable guess?

int

float

string

User Apoleo
by
5.1k points

2 Answers

5 votes

Answer:

guess is a string

Step-by-step explanation:

User Levansuper
by
5.0k points
7 votes

Guess is a string. By default the input function returns string types.

User Chien
by
5.6k points