Striving For Greatness
Get Certs or Die Tryin
That’s you in your avi ?Imma start in 2 weeks or so.
That’s you in your avi ?Imma start in 2 weeks or so.
Lol yeah it's old now though. Like 4 years. Need to change it.That’s you in your avi ?
Yeah that’s a great idea to have a page for each day
Stylistically I'd use a switch on order instead of if/elif. It also looks like you set up prices in that coffee machine, but hard code them in main.GitHub - SnowflakesByTheOZ/Day-15---Coffee-Machine: Coffee machine exercise
What's up, hope yall been good. This is my attempt at Day 15's Coffee Machine exercise. I am a beginner so please highlight any errors I made or indicate areas that I could've improved.
Peace to yall
You have self-repeating code which is what functions are for. Most of the changes in your code seem to be price and order name so just make a function that takes those two asGitHub - SnowflakesByTheOZ/Day-15---Coffee-Machine: Coffee machine exercise
What's up, hope yall been good. This is my attempt at Day 15's Coffee Machine exercise. I am a beginner so please highlight any errors I made or indicate areas that I could've improved.
Peace to yall
GitHub - SnowflakesByTheOZ/Day-15---Coffee-Machine: Coffee machine exercise
What's up, hope yall been good. This is my attempt at Day 15's Coffee Machine exercise. I am a beginner so please highlight any errors I made or indicate areas that I could've improved.
Peace to yall
You have self-repeating code which is what functions are for. Most of the changes in your code seem to be price and order name so just make a function that takes those two as
arguments. You can use something like print(f'not enough funds to purchase {order_name}')
that was just a quick glance as ur code, you can probably notice other things that you can turn into functions.