asked 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

asked
User Apoleo
by
7.7k points

2 Answers

5 votes

Answer:

guess is a string

Step-by-step explanation:

answered
User Levansuper
by
8.2k points
7 votes

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

answered
User Chien
by
8.8k points