Unit 5
Unit 5
Unit 5 Exercises
Create a dictionary that contains at least three random names as keys
and three emails as values. Afterwards, write a function to iterate over
this dictionary using for loop.
Using the same dictionary, write a function that checks to see if the
input already exists in the dictionarys keys. If it does exist, print
(Name already taken). Else, print (Name is available).
Create a list that contains at least 5 numbers. Then write a function
that uses for loop to print the sum of numbers in the list.
Using the same list, write a function that only prints the first three
elements of the list using list slicing.