Back to tasks
or instead of and
BeginnerPython for kids 路 Lesson 29: Mistakes in ifs
Problem Statement
The program should print TAK for numbers from 1 to 10, and NIE for the rest - but it almost always says TAK. This program has a mistake - find it and submit the fixed version.
n_str = input()
n = int(n_str)
if n >= 1 or n <= 10:
print("TAK")
else:
print("NIE")
Input Format
One whole number n (-1000 <= n <= 1000).
Output Format
TAK or NIE, in capital letters (Polish for yes and no - like in Polish olympiads).
Examples
Example 1
Input
5
Output
TAK
Example 2
Input
50
Output
NIE