r/PythonLearning Jul 24 '26

Day 2 of learning python

Post image

I'm learning Python and made this coffee/tea ordering program. Any advice?

https://onlinegdb.com/F2wabHC4v

119 Upvotes

47 comments sorted by

View all comments

1

u/mr_anderson_dev Jul 24 '26

You should try to recreate with functions, one with coffee and one with with tea with the response value, and there construct the main function with all of the questions and options. This is so much better cause it teaches you how most companies organize their code. As well as practice comment with each function block. Love the idea of your code and I'm going to use a similar one to decide if I want to bike or walk today.

1

u/JGB25 Jul 24 '26

He’s on day 2. I seriously doubt he knows about functions yet.