Skip to main content
added 6 characters in body
Source Link
dmytro
  • 1.3k
  • 10
  • 21

You have to use and for logical conjunction, not '&' symbol. Try this:

... if (i*k==a) and (j*l==c) and (i*l)+(j*ki*l+j*k)==b): ... 

You have to use and for logical conjunction, not '&' symbol. Try this:

... if i*k==a and j*l==c and (i*l)+(j*k)==b: ... 

You have to use and for logical conjunction, not '&' symbol. Try this:

... if (i*k==a) and (j*l==c) and ((i*l+j*k)==b): ... 
Source Link
dmytro
  • 1.3k
  • 10
  • 21

You have to use and for logical conjunction, not '&' symbol. Try this:

... if i*k==a and j*l==c and (i*l)+(j*k)==b: ...