So hey guys I am totally new to coding and I tried to make a programm that would show me my recipe for my pancakes etc. if I type a certain number from 1 to 3 in there.
But it came with a couple problems I dont know how to solve since this is my first time. the first is at print(for) and the next one is at the end of the line at ]🙂 appreciate your help in advance and bless you all
portions = 1
Pfannkuchen = '1'
Waffeln = '2'
Schokokuchen = '3'
Rezept = input('Bitte geben Sie Ihr Rezept an: ')
is_Pfannkuchen = 1
is_Waffeln = 2
is_Schokokuchen = 3
if is_Pfannkuchen:
print(for x in [str(portions * 0.5) + '2Eier', '200 g Mehl', '200 ml Milch', '1 Prise Salz', '60 ml Wasser', '1 Prise Zucker']🙂
print(x)
elif is_Waffeln:
print(for x in [str(portions * 0.5) + '3 Eier', '200 g Mehl', '200 ml Milch', '1 Prise Salz', '1 Backpulver', '1 Prise Zucker']🙂
print(x)
elif is_Schokokuchen:
print(for x in [str(portions * 0.5) + '3 Eier', '200 g Mehl', '200 ml Milch', '1 Tafel Schokolade', '1 Backpulver', '1 Prise Zucker']🙂
print(x)
else:
print('Bitte Geben Sie eine Zahl von 1-3 an')
But it came with a couple problems I dont know how to solve since this is my first time. the first is at print(for) and the next one is at the end of the line at ]🙂 appreciate your help in advance and bless you all
portions = 1
Pfannkuchen = '1'
Waffeln = '2'
Schokokuchen = '3'
Rezept = input('Bitte geben Sie Ihr Rezept an: ')
is_Pfannkuchen = 1
is_Waffeln = 2
is_Schokokuchen = 3
if is_Pfannkuchen:
print(for x in [str(portions * 0.5) + '2Eier', '200 g Mehl', '200 ml Milch', '1 Prise Salz', '60 ml Wasser', '1 Prise Zucker']🙂
print(x)
elif is_Waffeln:
print(for x in [str(portions * 0.5) + '3 Eier', '200 g Mehl', '200 ml Milch', '1 Prise Salz', '1 Backpulver', '1 Prise Zucker']🙂
print(x)
elif is_Schokokuchen:
print(for x in [str(portions * 0.5) + '3 Eier', '200 g Mehl', '200 ml Milch', '1 Tafel Schokolade', '1 Backpulver', '1 Prise Zucker']🙂
print(x)
else:
print('Bitte Geben Sie eine Zahl von 1-3 an')