Coding in Python 05 – Lists and Dictionaries

In the fifth video of the Coding in Python series, Lists and Dictionaries are shown.

YouTube player

Creating a simple list

turtles = ['michelangelo', 'raphael', 'leonardo', 'donatello']

Print the entire list


Print a specific item from the list (starts counting at 0)


Remove an item from the list


Add an item to the list


Creating a dictionary

turtles = {'michelangelo':'party dude', 'raphael':'cool, but rude', 'leonardo':'leader', 'donatello:'geek'}

Print a specific item from the dictionary


Delete an item from the dictionary

del turtles['michelangelo']

Add an item to the dictonary

turtles["shredder"] = "mean dude"

Brand-New Course!

Discount Vouchers

Receive 5% off an LPI exam voucher!

Exclusive Member Features

Support the channel and receive exclusive perks!