Question: pyton Assign user_str with a string from user input, with the prompt: 'Enter a string: ' Hint -- Replace the ? in the following code:
pyton
Assign user_str with a string from user input, with the prompt: 'Enter a string: ' Hint -- Replace the ? in the following code:
user_str = ?('Enter a string: ') Note: These activities may test code with different pre-entered test values, thus blank print statements are placed after the prompt so that output will appear on the following line. This activity will perform two tests: the first with user input of "Hello!", the second with user input of "3230 Main St."
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
