intro to python\nwhat is the type of the variable x in the following python program?\nx = input(\enter…

intro to python\nwhat is the type of the variable x in the following python program?\nx = input(\enter something: \)\nthe type cannot be determined\nfloat\ninteger\nstring

intro to python\nwhat is the type of the variable x in the following python program?\nx = input(\enter something: \)\nthe type cannot be determined\nfloat\ninteger\nstring

Answer

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