Xiaobai asks for help, the indentation correlation problem of while function in python?

![whilen=n+1
while][2]
if n%2==0
there is also a small question about why if n% 2 equal 0 in the tutorial is two equal signs. I tried to delete an equal sign to prompt a syntax error

.
Feb.28,2021

1. First of all, make sure your indentation is full of four spaces or a tab.
2. As for the problem that if n% 2 equal 0 is two equal signs, one "=" is the function of assigning values to variables, and the two "= =" are comparison operators that return True or False.

Menu