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
India Languages,
3 months ago
Chemistry,
3 months ago
Science,
3 months ago
Chinese,
7 months ago
English,
7 months ago
Social Sciences,
10 months ago
Math,
10 months ago