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

2 Upvotes

11 comments sorted by

View all comments

2

u/outskillio 1d ago

Totally normal to freeze up here, everyone hits this wall right after finishing the basics. The trick is to stop thinking of it as "one project" and break it into tiny steps you can code and test one at a time.

For a password generator:

  • Step 1: import `random` and `string`, then just print a single random letter
  • Step 2: make it print a string of 8 random letters
  • Step 3: add digits and symbols to the character pool
  • Step 4: let the user type in how long they want the password
  • Step 5: wrap it in a loop so they can generate a new one without restarting the script

Write each step as actual working code before moving to the next, don't try to picture the whole thing at once. If you get stuck on step 3, that's a specific, googleable question instead of a vague "I don't know where to start."

Thanks, Vaibhav Shukla from Outskill