r/learnpython • • Jan 05 '24

I can't seem to code properly.

Hey everyone.

I started learning Python from yesterday itself, and it's very intriguing. I've pulled all nighters to watch MIT lectures and Corey Schnafer. As of now, I can safely say I understand how to work with strings, numbers, tuples, and lists. That to a slightly basic extent. Today, I decided to go a bit adventurous and tried learning to code a Tic-Tac-Toe. Didn't work. Looked up code online - I barely understand any of it.

I know you may think, "This guy is a laugh! He's running before he could walk!" Thing is, things seemingly come natural to me, especially Mathematics. And, programming languages such as these are very mathematically-oriented. So, I felt a bit disheartened.

I scrolled on this subreddit and found that many people watch lectures and read books, but when it comes to the coding aspect of it, they frazzle. They don't know what to do. I want to prevent that. But how? I don't want to code print("Hello World!") forever. Any advice? Any tips? If you could share your personal anecdotes, please do. Apparently, there is some imitation culture where you can copy other people's codes and tweak it a bit. Is that ethical ?

Also, once I finish learning the basics and experimenting and coding up basic projects, I plan on learning pandas and mathplotlib (I am interested in Data Science) and some Django.

2 Upvotes

12 comments sorted by

View all comments

2

u/Wasabi9495 Jan 05 '24

I initially started with the Python Crashcourse, which really helped me get into the language. But what really helped me become more and more fluent in Python was setting a goal and trying to achieve it. I used to work for company where I often had to manage multiple IoT devices over a clunky to use API with tedious and lengthy code. I sat down a few days and wrote myself an application, complete with GUI that would allow me to save already accessed devices in a list and send API requests to them with the push of a button. That saved me a lot of work, got me some recognition from my boss and other coworkers and soon we were all using it. (We were just a tiny company of 9 people). I also wrote barcode generators for almost all kinds of barcodes, as well as datamatrix, aztec and so on.

You grow with challenges. Is there something you want to code? Specifically for yourself? Something that would be fun to use or would ease your everyday life?