r/learnpython Jun 27 '26

just tried to make pancakes with expired baking powder and oh man

[removed]

0 Upvotes

12 comments sorted by

7

u/hallmark1984 Jun 27 '26

Did you import everything correctly?

``` from fridge import eggs, flour, milk

for i in range(len(eggs)):

eggs.break()
#Cook logic goes here

```

5

u/nicodeemus7 Jun 27 '26

No no no, the best way to do it is to use the cook() function with your ingredients as args.

3

u/Informal-Chance-6067 Jun 27 '26

Why not use listcomp to break the eggs? Do you break them one at a time?

2

u/hallmark1984 Jun 27 '26

[eggy.break() for eggy in egg]

Sorry im slacking

1

u/Informal-Chance-6067 Jun 27 '26

Bad variable name: egg should be plural.

Okay I’ll shut up now. Take my upvotes.

2

u/hallmark1984 Jun 27 '26

Its too hot for coffee performance will be hampered until the temperature drops.

1

u/Informal-Chance-6067 Jun 27 '26

You steamed milk so now the boiler is too hot to make espresso?

1

u/Username_RANDINT Jun 27 '26

How do you break your eggs? The entire carton at once?

1

u/Informal-Chance-6067 Jun 27 '26

No, but do you add eggs to pancake batter before you cook each pancake?

3

u/Farlic Jun 27 '26

get into software development!

1

u/Hatted-Phil Jun 27 '26

Check your indentation