Back to tasks
A weekend with a trap
BeginnerPython for kids 路 Lesson 29: Mistakes in ifs
Problem Statement
The program should print TAK for Saturday (6) and Sunday (7), and NIE for other days - but it always says TAK. This program has a mistake - find it and submit the fixed version.
day_str = input()
day = int(day_str)
if day == 6 or 7:
print("TAK")
else:
print("NIE")
Input Format
One whole number - the day number (1 <= day <= 7).
Output Format
TAK or NIE, in capital letters (Polish for yes and no - like in Polish olympiads).
Examples
Example 1
Input
7
Output
TAK
Example 2
Input
3
Output
NIE