Computer Science, asked by tomrichards963, 7 months ago

write and run a python program tha you store in a file. the program should demonstrate how to prompt the user for input and display the string the user entered

Answers

Answered by rounaklongani
0

Create a file program.py and write the following code:

#prompting the user for input

string = input("Enter your name: ")

#printing what the user entered

print("The string which user entered is: ", string)

Output:

Enter your name: John

The string which user entered is: John

Similar questions