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
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
Physics,
5 months ago
Math,
5 months ago
Psychology,
5 months ago
Chinese,
10 months ago
English,
10 months ago
Social Sciences,
1 year ago
Math,
1 year ago