Skip to content

Instantly share code, notes, and snippets.

@marko-knoebl
Created May 27, 2016 19:34
Show Gist options
  • Save marko-knoebl/74c240388a9c3e1fa922e9e9a82e2536 to your computer and use it in GitHub Desktop.
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
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