element = -1 c = input() nc = input() while element != str: element = input() if (element % 2) == 0: c =+ 1 elif (element % 2) == 1: nc =+ 1 print("Четных: " + c) print("Нечетных: " + nc) Writes that:
Traceback (most recent call last): File "/home/feironox5/PycharmProjects/untitled1/hjh.py", line 6, in if (element% 2) == 0: TypeError: not all arguments during string formatting