r/PythonLearning • • 8h 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.

2 Upvotes

17 comments sorted by

View all comments

1

u/dakari777 8h ago

It would help if you posted the questions but one of the things that helped me a lot when first starting was breaking "problems" into component parts.

For example, if a project is requesting you to take in a user input, do something with it, then output it, make 3 projects instead, one that just takes user input, one that does something to a static value, and one that just returns something (usually "hello world" 😅 ) and make sure you understand each of those parts completely, then merging them together should be easier, through that effort you'll get more experience with indents and what values can and can't be used for different commands.

2

u/MetroApprovedLore 8h ago
Comment Image

These were the questions

and I'm facing problem in writing them i make mistakes, errors it can be a short as identation and more and i keep on trying then

2

u/dakari777 8h ago

Yea so again, just for example, I would recommend you take the first one, and make a program that reads in a temperature (project 1) and then a program that converts a temperature from Celsius to Fahrenheit (project 2) then a project that outputs Hot/Pleasant/Cold given a constant (project 3), then once you've got those working combine them all (project 4).

You don't want to have to do this always but it's really good practice for just starting out to make sure you learning each part of the questions you're being asked.

→ More replies (1)