ExampleGet your own Python Server Create a dictionary that contain three dictionaries: myfamily = { "child1" : { "name" : "Emil", "year" : 2004 }, "child2" : { "name" : "Tobias", "year" : 2007 }, "child3" : { "name" : "Linus", "year" : 2011 }} Try it Yourself ...
ExampleGet your own Python Server Print each adjective for every fruit: adj = ["red", "big", "tasty"]fruits = ["apple", "banana", "cherry"] for x in adj: for y in fruits: print(x, y) Try it Yourself » Related Pages Python For Loops Tutorial For Loop Through a String For...