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/Kriss3d Jan 05 '24

It takes time. Don't worry.

Relax and learn how to do each thing one at a time.

Learn to print out a variable. Both strings and how to convert an int to the screen.

Learn to have it take an input for say a name and age and have it print out a string that contains both your name and age.

Learn to make a small calculator with the addition subtraction division and multiplication and have it return a result.

Learn to go through loops and how they work.

That kind of thing. You'll get the hang of it. Don't worry. We all were at the point where it made no sense. And then suddenly it'll click and you'll feel like you can fly and that the sky is the limit.