Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Beginner project ideas?

I've went through Code Academy tutorials, YouTube videos, and Project Euler challenges off and on for months, but I always get uninterested so I'm thinking that learning through a project seems like it would be ideal because I would have to search around for solutions and really dive into it and make it an everyday thing. Any ideas for things I could try and build? Also I'm curious on how some of you have learned to code to get an idea of what I should be doing. Thank you for any feedback.
I'd see about using an OCR library (Optical character recognition) to maybe make a program that'll take a screenshot or image as input and display it as text.
You will be interacting with files, setting arguments to use in said library.

Also there's many things you can do, maybe write a scraper to pull info from a site you'd like using requests or just automate some daily web routines with a browser automation framework like selenium.

Probably the hardest question in programming is what should I create today.
I use python for anything HTTP really.

Here's an example I have written for another thread for searching a name and getting back possible addresses. Uses BeautifulSoup for parsing out what I need and request's to get data from the website (like your browser does, just without one) HTTP type work is my favorite.
https://hackforums.net/showthread.php?ti...id59938665
Building a calculator is what got my interest. It's the default program almost anyone will recommend you build to test out your raw beginner skills.
This signature is for sale.
Calculator for lot of beginners, I plan to develop a game with Pygame, you should also take a look
[Image: support-brown.png]
(Jul 3, 2020 04:18 AM).nitsua Wrote:  I've went through Code Academy tutorials, YouTube videos, and Project Euler challenges off and on for months, but I always get uninterested so I'm thinking that learning through a project seems like it would be ideal because I would have to search around for solutions and really dive into it and make it an everyday thing. Any ideas for things I could try and build? Also I'm curious on how some of you have learned to code to get an idea of what I should be doing. Thank you for any feedback.

First program you should try to do is just build a simple calculator that takes input from user and do the calculation.

Then maybe try learning scraping using beautifulsoup request or selenium.

Or what I liked to do was to made a simple bot for a game that I used to play using pyautogui and open cv to automate a lot of boring stuff like grinding. Building things like this which actually solve your problem or help you in your life actually motivates you to do more stuff. Keep learning python is flexible and possibilities are endless
For me, I had to dig in and solve a real problem I was facing in order to really get familiar with the language. I wrote a little tcp listener, an xml parser for some of y work data, and a few other small utilities that made my day easier.

Good luck, python is a blast!
There are so many options it just depends what you are in to personally!

I have many projects going on at the same time! Always lots to do, i love messing around with Selenium, bs4 and requests.

The level of automation you can get whether it be scraping generic data, information on products, the list is endless.

I'd advise you to find something that makes you tick, and get stuck in!

Harley
"Give a Man a Fish, and You Feed Him for a Day. Teach a Man To Fish, and You Feed Him for a Lifetime"
If you've no appreciation for the challenges provided by the aforementioned course plans, I recommend branching from a program you take interest in. It doesn't matter what it is nor how advanced you may perceive it to be. It could be a game, some utility program, anything really. For example, I made a recreation (of sorts) of the game InstLife (on Android) using the C Windows API here about a year ago. I carried over all of the same functions, bells, whistles, and what not. It was actually a pretty decent game, but progression fell off after I got a new job.

Another example I'll provide, though it may be kind of redundant because requirements for such programs are almost always purely situational: make a program that automates something you would normally do manually. Here just a few weeks ago I decided to follow through with a complete format conversion of my entire music library. Prior to then, I'd been using ffmpeg to convert and Audacity to cut audio when needed. During that time (basically for the past four years) I'd been using the MP3 format at a 44k sample rate. Upon making the decision, I needed to make a script that would allow me to paste a link to the audio, download it, and convert it (with the appropriate metadata tags) all from a single function. Initially, I used batch. But hours after constructing said script I had a requirement to use Regex to tokenize complex strings using atypical delimiters. Batch was out of the question at that point, so I switched to Python. (Which, obviously, provided more functionality than what I needed.)

The script was complete in just under two hours and I can now paste a link and have it:
- Download via youtube-dl
- Extract and tag automatically according to file name via ffmpeg

But, as I said that's not the best direct example of a challenge. I would assume most would refer to as purely situational... which it is 99% of the time. Therefore, the first is the best I can come up with. And even at that, I (and I assume many others) have learned more by recreating others' programs than reading a book or following a tutorial/lesson. Just make sure it's something you take legitimate, genuine interest in rather than something that will be seen just as another lesson. That drive is what helps you remember what you learn in the process.
[Image: chain.png]


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by The One Who KnocksDec 31, 2020 02:34 PM 8 346 Dec 31, 2020 02:34 PM
Last Post: Weebex
[Python] by MeterpreterJun 20, 2018 07:29 AM 7 229 Jun 20, 2018 07:29 AM
Last Post: LSDoom
[Python] by Pre-eminentApr 27, 2018 06:53 AM 10 374 Apr 27, 2018 06:53 AM
Last Post: Pre-eminent