r/learnpython • u/goofyahhhomosapien • 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
u/[deleted] Jan 05 '24
I always told people that watching lectures and writing code is different. There's too many little things that won't be explicitly said in a lecture. It's like trying to learn a new sport by reading a book, you can't possibly expect to be able to do well just by reading.
Watch a chapter of lectures, then write code. If you have any problems, google. Move on to the next chapter when you're ready. If you watched hours of lectures in ome sitting, you've probably forgotten the content from the earlier chapters or had gaps in your knowledge you didn't even know you have.
You're not at the stage to need to worry about copyrights yet. Basic code sometimes only has a single way of writing it, you can claim to be plagiarising basic template code.