Hi,
I'm quite new to Python, looking to get a general understand how the below out puts what it does:
Why is 1 (in the if statement) unable to be changed?
Any information would be great. Thank you
I'm quite new to Python, looking to get a general understand how the below out puts what it does:
my_list = range(4,11) for num in my_list: if (1==num%2): print (str(num))Output (5, 7, 9)
Why is 1 (in the if statement) unable to be changed?
Any information would be great. Thank you
