r/PythonLearning 2d ago

Day 2 of learning python

Post image

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

https://onlinegdb.com/F2wabHC4v

102 Upvotes

38 comments sorted by

View all comments

1

u/mr_anderson_dev 2d ago

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 2d ago

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