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 export ________ database object(s) in a single export operation

Fill in the blank(s) with correct word

Computer Science & Information Technology

In the following code, what is the algorithm's complexity? ? minIndex = 0currentIndex = 1 while currentIndex < len(lyst): if lyst[currentIndex] < lyst[minIndex]: minIndex = currentIndex currentIndex += 1return minIndex ?

A. O(n2) B. O(n) C. O(log2n) D. O2

Computer Science & Information Technology