2- I got it right, but I feel like I missed the point



Is there a more simple way to write this?


for item in webster:
    print webster["Aardvark"]
    print webster["Baa"]
    print webster["Carpet"]
    print webster["Dab"]


for item in webster:

Do you know here what is item ? If you don’t then print it inside for loop.
now consider how can you use it?


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.