Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question: 2 what is the type of the variable x in the following python …

Question

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

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() is of string type.

Answer:

string