if num % 2 == 0:     pass # Even  else:     pass # Odd

Read more of this post