r/learnprogramming • • Oct 25 '26

Topic Python beginner

I’m a 1st year computer science student. I have no coding experience and my classmates can finished it like under 20 mins.

How do you code a word problem? I’m stuck of what I should code. I can somehow visualize it but I can’t put it code and I have upcoming midterm. Most of my midterm is word problem then create a function and return statement.

12 Upvotes

11 comments sorted by

View all comments

3

u/RajjSinghh Oct 25 '26

When you get to university having never coded before, a lot of your peers already have several years of experience. You just have to get good.

When you say a word problem, I'm guessing you mean the problem is described in words. You should get into a habit of looking at the problem and thinking about what needs to be done first, then trying to think about implementing it. Practice is the best step forward. I'd do leetcode in Python until it feels natural.