+ 2
When to put parentheses in if statement and when not?
For example we write if(1==1) but we can also write if 'hello' in list:? Please anyone who can give the best explanation to this?
3 Answers
For example we write if(1==1) but we can also write if 'hello' in list:? Please anyone who can give the best explanation to this?