#at first i want to try some simple calculations out of lists like we lernt in our lesson

list_1 = [ 1, 2, 3, 4, 5]       #first list 

list_2 = [ 10, 20, 30, 40, 50]  #second list

zahl_1 = 5                     #one numer to calculate with

for eintrag in list_1:
    print eintrag * zahl_1      #my aim is to multipilcate every number in the list with the number i put in for zahl1
    

for eintrag in list_2:          #now i take the second list with the higher numbers and divide with the number
    print eintrag / zahl_1 
    
''' now i try the idea of calculating my consumption of coffee and how huch it costs me every day '''

''' important parameters '''


coffee = 250                                                  

price = 7.9

days = 11

espresso = 7

espresso_city = 2.1

''' first calculation of the consumption of coffee ''' 

consumption_day = coffee / days

print " Kaffeverbrauch am Tag:", consumption_day, "Gramm" 

''' how much it costs'''

price_per_gramm = price / coffee

print " Kaffeepreis pro Gramm:", price_per_gramm, "Euro" 

''' daily costs'''

costs_of_day = price_per_gramm * consumption_day

print " Preis des taeglichen Kaffeekonsums:", costs_of_day, "Euro"

''' comparison to a coffee at the city '''

one_espresso = espresso * price_per_gramm      #costs of one espresso

espresso_comparison = one_espresso / espresso_city

print " Preislicher Anteil eines Espressos zuhause an einem der Stadt", espresso_comparison


''' savings of one espresso brewed at home '''

savings = 1 - espresso_comparison

savings_euro = espresso_city * savings

print " Ersparnis pro Espresso", savings_euro, "Euro"













