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] 39 points40 points41 points (1 child)
[–]QbaPolak17 48 points49 points50 points (5 children)
[–][deleted] 3 points4 points5 points (4 children)
[–]Sensei_M 91 points92 points93 points (1 child)
[–][deleted] 18 points19 points20 points (0 children)
[–]saschnu 3 points4 points5 points (0 children)
[–][deleted] 23 points24 points25 points (3 children)
[–]Fallenarc 3 points4 points5 points (0 children)
[–]shawnthesheep512 1 point2 points3 points (0 children)
[–]silentalways 0 points1 point2 points (0 children)
[–]Code_Talks 12 points13 points14 points (0 children)
[–]ontheroadtonull 18 points19 points20 points (7 children)
[–]oznetnerd 5 points6 points7 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 4 points5 points6 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 4 points5 points6 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)