Homework Solution: PYTHON…

    PYTHON Assign user_str with a string from user input, with the prompt: 'Enter a string:n' Note: These activities may test code with different test values. This activity will perform two tests: the first with user input of "Hello!", the second with user input of "3230 Main St.".

    Expert Answer

     
    Answer: user

    PYTHON

    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.”.

    Expert Retort

     

    Answer: user_str = input(“Enter a string:n”)

    The overhead proposition earn convey any string into variable user_str.

    Code:

    user_str = input(“Enter a string:n”)

    print(user_str)