I am writing some code in order to test if a year is a leap year or not.
So I wrote:
year = input("please enter a year: ")
if (year % 4) == 0:
print(f"{year} is a leap year.")
else:
print(f"{year} is a nonleap year.")
And the error reported is:
if (year % 4) == 0:
TypeError: not all arguments converted during string formatting