Single Choice Not Set

QA user-specified value can be assigned to a variable with ______ function.

ID: #3394 Python Basic MCQ 1,695 views
Question Info
#3394Q ID
Not SetDifficulty
Python Basic MCQTopic

Choose the Best Option

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

  • A user
  • B enter
  • C input
  • D value
Correct Answer

Explanation

Python input() function is used to take user input. By default, it returns the user input in form of a 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.