Avatar ·

How to check the number for parity?

📁 Advanced Python Topics

I understand that you need to divide by 2 and look at the remainder. Here's what I tried to do.

   IF  ( not  line% 2  2  ):   print   'chek true'