Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

intro to python what is the type of the variable x in the following pyt…

Question

intro to python
what is the type of the variable x in the following python program?
x = input(\enter something: \)
the type cannot be determined
float
integer
string

Explanation:

Brief Explanations

In Python, the input() function always returns a string, regardless of what the user enters. So the variable x which stores the result of input() will be of string type.

Answer:

D. string