I am a bit confused with if/else statement. Why the code always prints True while it should be False.
I have tried with different variables like i =10
, i = 'a'
, i = 25
. And it will be False if i=[]
This is my code:
i =1
if i:
print True
else:
print False