Question #1
Dropdown
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?
string
int
float

Respuesta :

hsmtp

Answer:

int

Explanation:

Here is the input:

"Enter a guess: 2"

The input is the number. The type of variable for whole number (number without a decimal point) is integer, or int in short form.

If the input would be:

"Enter a guess: Hello"

Then the type of variable would be string, because it's a text input.

And if the input would be:

"Enter a guess: 1.5"

Then the type of variable would be float, because it's a number with a decimal place.

Answer:

What data type is the variable guess?

STRING

Explanation:

Edge2020