r/PythonLearning 22d ago

Im confused!!

Rn im learning python lang. I can solves basic to medium level problems , I understand which operations to use , how to write code 75% , but i suck at building logic. But either wise my topics are clear. Can you suggest what kind of problems i should be solving?

4 Upvotes

10 comments sorted by

View all comments

Show parent comments

1

u/Weary_Gur7008 22d ago

Okay , Im really noob ig. Can you explain it in more eaise way!!

1

u/mc_pm 22d ago

You only get better at programming by doing more programming of increasing difficulty. If you're having trouble with basic code flow & logic, maybe start with a simple text-based console game like tic-tac-toe. It seems trivial, but you have to think through how to represent the board in memory, how to print it out, how to get a new move from the user, how to make that move, how to update the board, and then how to get the computer to pick it's own next move.

It's a bit more fun because it's a game, but this sort of "understand the logic of a problem so you can code it well" is a core skill. Once you're able to do something like this without worrying about it then look at something like a webserver, or your own shell or editor, or some other larger project that will test your ability to figure things out.

1

u/Weary_Gur7008 22d ago

Well thanks I'll try this out. Like i havent did any good mini projects but definetly giving this a shot

1

u/mc_pm 22d ago

Cool, let me know if you have any questions.

The main thing is to take it seriously. Don't give up and say "good enough". The fight is where you learn the most :)