Single Choice Not Set

QUser input is read as ________ ?

ID: #3395 Python Basic MCQ 794 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

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.