यदि उपयोगकर्ता ने 55 दर्ज किया है तो आउटपुट क्या है?
What is the output, if user has entered 55 ?
a=input("Enter a number")
print(type(a)) A
int
B
float
C
double
D
str
Explanation
In Python, the input() function always returns a value as a string. So, even if the user enters a number like 55, the input is treated as a string.
Explanation:
a = input("Enter a number"): The value entered by the user (in this case, 55) is stored as a string.print(type(a)): This will print the type of the variablea, which is a string (str), not an integer or float.
Output:
(D) str
Correct Answer: D) str