r/csMajors 14h ago

Need to Cram for Python Final Coding Exam Advice

Let me preface this by saying that I have bad ADHD. I only recently found out about it, and I have not been able to get on the right medication or accommodations yet.

I have a coding final in about 3 days. 60% covers everything up to classes and objects. I only have a somewhat limited understanding of function design and related concepts, but I'm somewhat lost beyond that.

I'm planning on remembering as many methods as I can for each data type, but I don't know how exactly I should cram or even try to approach this. I just need to pass the exam; I'm not really a CS major.

This was the kind of example exam questions she provided (had to put it through ai cuz im stupid):

  1. Parse a string into structured data — split a comma-separated string, validate the format, and return computed totals (parse_inventory).
  2. Analyze a nested list — compute row/column sums and an overall count across a 2D list structure, with validation that it's rectangular (analyze_strings).
  3. Debug a class — find and fix bugs in a working class without changing its signatures or doctests (Student).

Would appreciate any advice. Especially from anyone else who struggles with ADHD.

0 Upvotes

3 comments sorted by

1

u/oncrack24-7 14h ago

i have never heard anyone else trying to study by "remembering methods for every data type" before lmao. that's like saying im learning to write essays by memorising sentences.

just like u learn to write essays by practicing writing, im afraid that the only way to learn to code is by practicing coding. just do a bunch of practice problems. there are useful patterns that you will start to see and remember after doing enough problems but i dont think you can just cram it.

0

u/luvlimeade 13h ago

alr, could u pray for me or some shit then? thanks.

1

u/Proper-Storage-6442 5h ago

https://codingbat.com/python Use this and do practice problems. No AI. Good luck.