-
-
Save codecademydev/999e6d4c9c0ef6f0aab1a6357708c5f8 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prices = { | |
"banana": 4, | |
"apple": 2, | |
"orange": 1.5, | |
"pear": 3 | |
} | |
stock = { | |
"banana": 6, | |
"apple": 0, | |
"orange": 32, | |
"pear": 15 | |
} | |
for key in prices: | |
print key | |
print "price : %.2f." % prices[key] | |
print "stock : %d" % stock[key] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment