Local variable referenced before assignment in if statement
1462
UnboundLocalError on local variable when reassigned after first use
38499
Difference between declaring variables before or in loop?
123288
Dynamically set local variable
71634
Can a variable be defined only in the scope of an if-statement, similar to how it's often done for for-loops?
131376
Module and Local variable
113247
scope of local variables of a function in C
56050
Why put the constant before the variable in a comparison?
63854
How do boolean operators work in 'if' conditions?
154049
why does if("string") evaluate "string" as true but if ("string"==true) does not?
23488
"Missing return statement" within if / for / while
146419
How is conditional initialization handled and is it a good practice?
112198
Global Variables vs. Local Variables
6180
Error: 'else' without 'if'
33125
Unbound Local Error with global variable
17877
Why are local variables not initialized in Java?
3941
What's the difference between ".equals" and "=="?
133999
Does variables' order matter when doing == and === comparisons?