Back to tasks
A crooked else
BeginnerPython for kids 路 Lesson 29: Mistakes in ifs
Problem Statement
The program should print PARZYSTA (even) or NIEPARZYSTA (odd). This program has a mistake - find it and submit the fixed version.
n_str = input()
n = int(n_str)
if n % 2 == 0:
print("PARZYSTA")
else:
print("NIEPARZYSTA")
Input Format
One whole number n (-1000 <= n <= 1000).
Output Format
PARZYSTA or NIEPARZYSTA.
Examples
Example 1
Input
4
Output
PARZYSTA
Example 2
Input
9
Output
NIEPARZYSTA