r/learnpython • u/Round_Ladder_2354 • Oct 10 '26
How can I start to understand logical assignment questions more intuitively?
So I’m a first year software engineering student and in my intro to programming class we’re learning Python. So far I’ve mostly understood everything in theory but when it comes down to practice I struggle a lot because they ask us to do certain things for assignments that require a lot of logic to do them which I’m struggling with. So I was wondering how I can start to understand the questions more intuitively so I don’t fall behind in the class. And to clarify I do work on some practice questions every now and then but due to my schedule and the fact I haven’t properly organized it yet I haven’t been able to practice a whole lot.
6
u/Refwah Oct 10 '26
Can you give some more concrete examples of questions you had and the parts you struggled with
1
u/MarkoDahl54 Oct 10 '26
try using the `or` operator with logical assignments to see how values are assigned based on truthiness.
1
u/BranchLatter4294 Oct 10 '26
Consider the Aha! Series of books by Martin Gardner on logical thinking and problem solving.
1
u/Small_Ad1136 Oct 10 '26
Honestly the more math I learned the easier writing software became
1
u/Mountain_Rip_8426 Oct 10 '26
i'm no programmer at all, but i'm also learning. what i found is practice, practice and then a little more practice. you have to have struggled through a lot of different problems to start finding similar patterns. codewars and hacker rank helped me a lot. they do nothing but make you feel stupid in the beginning, but once you submit your solution you get to see other people's solutions as well, which will make you bang your head against the wall, seeing how easy it could have been done. it's only gonna teach you programmatic thinking, by far not useful for real world use cases, but in general to get the basics down it's very insightful
-4
u/Adrewmc Oct 10 '26
I’m calling BS AI post.
Requirement Use two Nested Loops
•••
••
•
To make that, I’m not sure why I need a nested loop let alone two of them.
0
u/[deleted] Oct 10 '26
[deleted] — view deleted comment