r/learnpython • u/CommercialPin2472 • 3h ago
Help me for my python exam!
I have a python exam on tuesday and need help with some things. I understand what functions are etc but I find it very hard to write them, especially with loops, if/elif/else, lists etc. Can someone maybe help or does someone have any advice?
0
Upvotes
8
u/lfdfq 2h ago
Writing loops if/elif/else etc is called 'programming'.
You're asking an incredibly generic question: "I have a programming exam, but I find it hard to do programming". What kind of help are you looking for?
3
u/Stock_Hurry_2257 2h ago
My advice is to not take the exam because you're not ready to take it and, if by some chance you manage to fluke a pass, the exam will be of no use to you.
1
u/LayotFctor 2h ago
I don't usually recommend using AI, especially since your exam probably doesn't allow AI either, but you managed to leave yourself only two days to study for a test, you have no choice.
Make sure to tell AI not to write code for you, only explain and correct your code. If AI writes code for you, you'll be fked during the test.
1
u/SisyphusAndMyBoulder 1h ago
Coding just ain't for everybody 🤷
•
u/mjmvideos 47m ago
Always work out what you want to do first. Visualize it on paper. Draw boxes and arrows. “Step through” your visualized steps pointing to the appropriate boxes and arrows as you go. Once you are satisfied that what you have drawn out will work then code it. The loops will take care of themselves at that point since you’ll know you need a loop and what the initial values will be and what the exit condition will be.
•
u/pythonQu 0m ago
you need to practice writing loops, functions, etc. Coding isn't something that you can do passively.
-1
u/EnvironmentalDot9131 2h ago
Bro you have ai get help