I am trying to calculate numbers in a range that when divided between 2 3 4 5 and 6, give rest 1 2 3 4 and 5, respectively. The syntax error is found when trying to use the module and match it to the rest that I want to obtain.
n = 0
while n < 439:
if n%2=1 and n%3=2 and n%4=3 and n%5=4 and n%6=5
print (n)
else:
n += 1
The syntax error is encountered when trying to do n% 2 = 1