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
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
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
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic