IT 116: Introduction to Scripting
Class 25 Ungraded Quiz

  1. Can a list be an element of a list?


  2. What do you call a list each of whose elements is a list?


  3. What is a tuple?


  4. Write a Python statement that creates a tuple assigned to the variable numbers containing the integers 1 through 5.


  5. Write a Python statement that create an empty tuple assigned to the variable empty.


  6. Write a Python statement creates a tuple containing only the integer one an assigns it to the variable t_1.


  7. Does does a tuple have an append method?


  8. Can you concatenate two tuples?


  9. Does a tuple have a sort method?


  10. Write the function print_2_d_list that prints out a two dimensional list with each inner list appearing on a single line.