2015-07-28 18:20:31 -04:00
..
2015-07-28 18:20:31 -04:00
2015-07-22 16:44:07 -04:00

Python Variables, Lists and Dictionaries

Create a variable named byte and set it equal to "school".

Create a list named instructors and have it contain the strings "Greg", "Ken", and "Billy"

Create an tuple named students and have it contain the strings "Adolfo", "Benny", "Devin", "Brendan"

What's the difference between a list and a tuple? Why use one over the other?

Create a dictionary with the following key-value pairs- "byteAcademy":byte, "instructors":instructors, "students":students

Print the keys and values of the dictionary. It should look like this:

byteAcademy - School  
instructors - Armen, Chris, Greg  
students - Adolfo, Benny, Billy, Brendan

Check out .format