r/PythonLearning • • Nov 03 '26

I just finished learn python basics, want to start building useful small projects. How do I go about it?

2 Upvotes

27 comments sorted by

3

u/jackardian Nov 05 '26

If you're still at projects that are only 20 lines, I'd start with files. Open a file and count lines, change dates, look for words. Try unstructured data, try bits of HTML, and try JSON.

1

u/Impressive_Carob_572 Nov 05 '26

HTML is a different programming language. I’m currently only learning python

2

u/jackardian Nov 05 '26

Yup. HTML is different. But I mean just use it as a sample to play with. Use python to open the file and do something with it. In my job this is what I do all day...get data out of things like HTML.

2

u/Impressive_Carob_572 Nov 05 '26

Sounds interesting! Thank you, I’ll start that

2

u/jackardian Nov 05 '26

Great. Good luck!

1

u/Impressive_Carob_572 Nov 05 '26

Thank you! But did you ever feel like you weren’t understanding the syntax but rather memorizing it when you started learning?

2

u/jackardian Nov 05 '26

Yeah. Everyone does. The best thing to do is get some code written that does something then change it inany small ways and see what it does. Figure out why.

2

u/Naive_Programmer_232 Nov 04 '26

think about current tasks that take you a long time to do and involve software. then brainstorm and think about a general system that could help you out with that. design it then make it with python and other tools if necessary.

1

u/Impressive_Carob_572 Nov 04 '26

Okay, I will try doing that and see

2

u/PhaXoniC Nov 03 '26

my biggest problem after basics is finding ideas for useful projects. that the same for you? i don’t have ideas, i am at the same stage

0

u/Impressive_Carob_572 Nov 03 '26

Yesss that’s where I’m stuck

1

u/ConsiderationNo9044 Nov 03 '26

Such as?

-1

u/Impressive_Carob_572 Nov 03 '26

Any useful project that is maybe under 20 lines of code for a start to help me learn the logic and structure of codes

2

u/silvertank00 Nov 03 '26

oh, you mean that small. under 20 lines you have got a mainloop with a rock-paper-scissors game and basically nothing else

1

u/Impressive_Carob_572 Nov 03 '26

I’ll try that and see but for some reason I feel like I haven’t learned every basic. The tutorial I used to learn was Code with Mosh intro to python 6 hour YouTube video, he thought every basic from variables, getting user input, functions, classes, list etc to dictionaries to libraries and modules. From there what else do I need to learn or I need to learn the individual libraries and how they are used or applied?

2

u/ConsiderationNo9044 Nov 03 '26

You learn what you need to make what you want. A game dev doesn't need to understand how to make web requests and parse web data, but a web dev doesn't need to understand how to make sprites, animations and draw windows on the GUI. Having a command over the fundamental building blocks of everything else (like what you mentioned you already learned which is good) is important, but if you try and learn even just the basics of everything, you'll quickly find yourself burned out and lacking skill in many areas.

Pick something you really want to make and research what you need for it :3

1

u/Dazzling_Music_2411 Nov 03 '26

Any useful project that is maybe under 20 lines of code

20 lines is not a project, it's an exercise.

Why are you not using a reputable textbook?

1

u/Impressive_Carob_572 Nov 05 '26

I don’t have any reputable textbooks. Which one can you recommend or send?

2

u/Dazzling_Music_2411 Nov 05 '26 edited Nov 05 '26

I like "Learn Python the Hard Way" by Zed Shaw, for beginners like you. Also consider a good MOOC like that of the Uni of Helsinki.

"Python Crash Course" by Eric Matthes is also pretty highly recommended.

1

u/Impressive_Carob_572 Nov 05 '26

Thank you

2

u/Dazzling_Music_2411 Nov 05 '26

No problem. The last book mentioned also has a number of useful projects.

Enjoy!

1

u/silvertank00 Nov 03 '26

"learnt how to boil water, now I want to make ramen".
First of, what do you consider a small useful project? if you have somekind of an issue that you could automate/give a solution to, it would be a great starter project.
Its really not that easy to recommend anything when we dont know your interests.
Some ideas tho:

  • if you are interested in math, build a simple linear regression visualizer,
  • if you are interested in having data on your phone from your home (anything, sensors/uptime/scraped data/etc.) build small apis
  • if you are interested in making games, make a flappy bird clone
  • if you are interested in automation, create a file fingerprinting/archiving program for yourself
  • etc

You will also have to look up things yourself and figure stuff out on your own.

1

u/Impressive_Carob_572 Nov 03 '26

So to work with data I have to learn how to build API’s?

1

u/silvertank00 Nov 03 '26

what kind of data and what kind of work?
APIs are for the purpose of serving some data for other programs/people. If you want to give answers to questions formed from a big data set, then go towards BigData

2

u/Impressive_Carob_572 Nov 03 '26

I’d like to try webscraping and see how it is! I do plan on learning automation as well

2

u/Curious-Mango87 Nov 03 '26

Build a simple calculator, and a guess game using if else logic.