Why does this print 4 times?


#1

#2

4 print statement + loop which will run 4 times.


#3

The for loop will run 4 times, for there are 4 string pairs in the webster.
The fact is 4 times, it will print out the "A star of a popular children’s cartoon show.
I think what you want to do is this.

for key in webster:
  print webster[key]

#4

Thanks you methodrockstar50321


#5

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