MCQ Single Best Answer Not Set

QUser input is read as ________ ?

ID: #3395 Python Basic MCQ 782 views
Question Info
#3395Q ID
Not SetDifficulty
Python Basic MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Floating Decimal
  • B Text String
  • C Boolean Value
  • D Integer
Correct Answer: Option B

Explanation

Python input() function is used to take user input. By default, it returns the user input in form of a text string.

 
color = input("What color is rose?: ")
print("Rose is", color)

Output

What color is rose?: red
Rose is red

Share This Question

Challenge a friend or share with your study group.