QuestionQ176

VerifiedComputer Programming and Python Fundamentals

Place the code boxes in the proper order to create a line of code that prompts the user for a string value and assigns it to the answer variable. Some code boxes are not used.

Drag & Drop
answer     
Explanation

Python’s input() function displays a prompt and returns the entered text as a string. Assigning that return value uses answer = input(“Enter yes/no: “).

Community Discussion

No comments yet. Be the first to start the discussion!