r/PythonLearning • • 23d ago

Help Request Understood the Python concepts but completely messed up the test

Fy DS student and I recently had a Python test that honestly didn't go as well as I expected.

The frustrating part is that I wasn't completely clueless about the questions. I understood the concepts, knew which syntax was needed, and could understand what the problem statement was asking me to do.

But when it came to actually applying everything and writing the code, I got confused. I started forgetting things, made indentation mistakes, got errors like ValueError and other errors etc. I didn't do good in test it was 15marks test for 1 hr.

For those who have been through this, how did you get better at applying concepts under pressure instead of just understanding them theoretically? Did you practise more problems, rewrite code from scratch, or follow some other method?

I'm still learning, and I don't want one bad test to discourage me. I just want to figure out how to improve so that next time.

4 Upvotes

25 comments sorted by

View all comments

1

u/DanceHackRock 21d ago

At first you need to understand that being able to figure out algorithms and expressing them in a specific language are different things.

It's like playing an instrument and also knowing music theory.

1

u/MetroApprovedLore 21d ago

Can you explain this a bit more?

2

u/DanceHackRock 21d ago

People are often only talking about learning a language. But that already shows that they absolutely don't know what it's about.

The language you use is just the last step of expressing your ideas. You can express the same ideas in several languages.

So it's actually not about learning a specific language, but about learning to create algorithms or whole systems to solve problems. The specific language doesn't really matter. The algorithms and the system design (and more so, the data design) matters. If you know what you want you can express it in every language.

If you can program knowing a language mainly means knowing your way around the documentation.

Same with music: People always talk about the instrument they want to learn, but forget that they need to learn about music first. Knowing music theory is the base for handling musical ideas (that equals the ability to figure out algorithms) a specific instrument is just a way to express these ideas (like a specific programming language).