Back to tasks
A riddle with text
BeginnerPython for kids 路 Lesson 29: Mistakes in ifs
Problem Statement
A riddle: how many legs does a dog have, counting the tail? The program reads the answer and should print DOBRZE (right) for 5, and ZLE (wrong) for other numbers - but it always says ZLE. This program has a mistake - find it and submit the fixed version.
ans = input()
if ans == 5:
print("DOBRZE")
else:
print("ZLE")
Input Format
One whole number - the answer (0..100).
Output Format
DOBRZE or ZLE.
Examples
Example 1
Input
5
Output
DOBRZE
Example 2
Input
4
Output
ZLE