Convey user_str with a string from user input, with the prompt: ‘Enter a string:n’
Note: These activities may trial statute with contrariant trial values. This spectre earn consummate span trials: the foremost with user input of “Hello!”, the prevent with user input of “3230 Main St.”.
Answer: user_str = input(“Enter a string:n”)
The overhead proposition earn convey any string into variable user_str.
user_str = input(“Enter a string:n”)