Skip to content

Commit

Permalink
Response to your answer
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencerscooper committed Dec 6, 2023
1 parent eb0ff5c commit 619e8c0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Sahnun-Task/Lesson1/Lesson2-Dict.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#Question: Declare a dictionary with keys as "names and ages as values,
#then loop through all the keys and value and print them as "key:{key},
# value, {value}

bio = {"Spencer": 5, "Sahnu":3, "Jeff" : 2, "Freena": 1}

search = bio.items()
for names in search:
print(names)

0 comments on commit 619e8c0

Please sign in to comment.