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...

To remove all filters from a table, click the Advanced Filter Options button and select Delete All filters

Indicate whether the statement is true or false

Computer Science & Information Technology

A single solid border around multiple objects indicates that the objects have been ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

A(n) ________________ tells a computer what to do based on whether a condition is true or false.?

A. sequence control structure? B. ?selection control structure C. ?repetition control structure D. ?walkthrough

Computer Science & Information Technology

_______________ are a part of the frame.

A. Hosts B. Packets C. Datagrams D. Protocols

Computer Science & Information Technology