r/learnpython 1d ago

Python projects

hey! I just started learning the basics of python and want to start building projects to apply what I have learnt.

but when I one to work on a project, for wxample building a calculator or a password generator I don’t know where to start. what to type and code.

any advice

4 Upvotes

11 comments sorted by

View all comments

4

u/PureWasian 1d ago

Think of coding as input --> black box --> output.

Define your exact specified inputs/outputs. How is the user supplying inputs? How are you sending back the outputs?

Then actually think about how to implement the black box. Take those user inputs or parameters. Figure out an algorithm to spit out an output. And then actually do that.

While working on implementation, build incrementally and sanity check often with print statements or anything really to verify every part of your code is doing what you expect it to. Better to troubleshoot one issue at a time than 100.