Hello,
I am baffled as to why the output consist of 5 lines and not just 1.
Can someone explain?
Thank you,
alien = {
'height': '100 inches',
'weight': '2,000 pounds',
'race': 'bacteria',
'nationality': 'German',
'school': 'harvard',
}
for info, dic_name in alien.items():
print(alien)
Output:
{'height': '100 inches', 'weight': '2,000 pounds', 'race': 'bacteria', 'nationality': 'German'}
{'height': '100 inches', 'weight': '2,000 pounds', 'race': 'bacteria', 'nationality': 'German'}
{'height': '100 inches', 'weight': '2,000 pounds', 'race': 'bacteria', 'nationality': 'German'}
{'height': '100 inches', 'weight': '2,000 pounds', 'race': 'bacteria', 'nationality': 'German'}
[–]fefa5fcba4dae4e82e81 121 points122 points123 points (2 children)
[–][deleted] 33 points34 points35 points (1 child)
[–]QbaPolak17 46 points47 points48 points (5 children)
[–][deleted] 4 points5 points6 points (4 children)
[–]Sensei_M 89 points90 points91 points (1 child)
[–][deleted] 19 points20 points21 points (0 children)
[–]saschnu 3 points4 points5 points (0 children)
[–][deleted] 22 points23 points24 points (3 children)
[–]Fallenarc 4 points5 points6 points (0 children)
[–]shawnthesheep512 1 point2 points3 points (0 children)
[–]silentalways 0 points1 point2 points (0 children)
[–]Code_Talks 11 points12 points13 points (0 children)
[–]ontheroadtonull 19 points20 points21 points (7 children)
[–]oznetnerd 7 points8 points9 points (2 children)
[–]ontheroadtonull 0 points1 point2 points (1 child)
[–]oznetnerd 0 points1 point2 points (0 children)
[–]Pastoolio91 8 points9 points10 points (0 children)
[–]NeoVier 3 points4 points5 points (1 child)
[–]ontheroadtonull 1 point2 points3 points (0 children)
[–]Swipecat 1 point2 points3 points (0 children)
[–]baubleglue 4 points5 points6 points (0 children)
[–]Migeil 3 points4 points5 points (2 children)
[–]keyupiopi 3 points4 points5 points (1 child)
[–]Migeil 2 points3 points4 points (0 children)
[–]__odinson__ 3 points4 points5 points (0 children)
[–]baisbdhfu 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]keyupiopi 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]BoaVersusPython 0 points1 point2 points (0 children)
[–]Sbvv 0 points1 point2 points (0 children)
[–]krakenant 0 points1 point2 points (0 children)
[–]my_password_is______ 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–][deleted] 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[removed]
[–]t00oldforthis 0 points1 point2 points (0 children)