To write a Python program to read a string from the user and then print it.
- Assign a variable named
men_stepped_on_the_moon. - Use
input()to read a string from the user and store it in the variable. - Print the value stored in the variable.
men_stepped_on_the_moon=input()
print(men_stepped_on_the_moon)
Thus,the Python program to read a string from the user and then print it is created successfully.
