Write and run a Python program that you store in a file. The program should demonstrate how to prompt the user for input and display the string the user entered.

What will be an ideal response?

$ cat mypy.py
#!/usr/bin/python
inp = raw_input('Enter the name of a month: ')
print 'You entered ' + inp
$ python mypy.py
Enter the name of a month: June
You entered June

or

$ chmod 755 mypy.py
$ ./mypy.py

Computer Science & Information Technology

You might also like to view...

You can use Microsoft Edge's ________ feature to take notes, write, and highlight directly on webpages and then share the note

Fill in the blank(s) with correct word

Computer Science & Information Technology

A is provided to a random number generator to ensure the same sequence of numbers is not generated during each execution.

a) date b) parameter c) seed d) None of the above.

Computer Science & Information Technology