🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

यदि उपयोगकर्ता ने 55 दर्ज किया है तो आउटपुट क्या है?

What is the output, if user has entered 55 ?

a=input("Enter a number")
print(type(a))
A)
B)
C)
D)

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 variable a, which is a string (str), not an integer or float.

Output:

(D) str

Latest Updates