Using the Python interactive shell, instantiate a list that holds three-letter abbreviations for the first six months of the year and display the list.
What will be an ideal response?
>>> mon = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun']
>>> print mon
['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun']
You might also like to view...
Answer the following statements true (T) or false (F)
1. You can only add values of the string data type to a List Box control. 2. If a List Box is empty, the Items.Count property equals ?1. 3. The while loop gets its name from the way it works: While a Boolean expression is true, do some task. 4. If you are writing a while loop that has only one statement in its body, you do not have enclose the statement inside curly braces. 5. By indenting the statements in the body of a loop, you visually set the loop body apart from the surrounding code.
Which class do you use to write data into a text file?
a. File b. PrintWriter c. Scanner d. System
Match the following terms to their meanings:
I. Border II. Line weight III. Line style IV. Presets A. the thickness of the line measured in points B. how the line displays such as solid, dashes, or dots C. a frame around the picture D. built-in adjustments from a gallery
The symbol "____" in stands for "is less than."
A. < B. <= C. > D. >=