You are viewing a single comment's thread. Return to all comments →
If you write n % 2 == 0, you check if the remainder equals 0. When you write n % 2 != 0, you check if the remainder does not equal zero.
Seems like cookies are disabled on this browser, please enable them to open this website
Python If-Else
You are viewing a single comment's thread. Return to all comments →
If you write n % 2 == 0, you check if the remainder equals 0. When you write n % 2 != 0, you check if the remainder does not equal zero.