You basically got it yeah. You can do x % 2 and check if that is 0, as % calculates the remainder (in python at least)
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies:
You basically got it yeah. You can do x % 2 and check if that is 0, as % calculates the remainder (in python at least)