Created
May 27, 2016 19:34
-
-
Save marko-knoebl/74c240388a9c3e1fa922e9e9a82e2536 to your computer and use it in GitHub Desktop.
Das item_prices - Skript, das wir am Ende der Lektion erstellt haben
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
item_prices = {'milk': 2.30, 'bread': 1.10, 'water': 0.50} | |
item = raw_input('Choose an item:') | |
if item in item_prices: | |
print 'price:', item_prices[item] | |
else: | |
print 'item not available!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment