You are viewing a single comment's thread. Return to all comments →
This fails on the numbers 18 and 20 in here, but runs correctly locally on python 3.12.7
n = int(input().strip()) if n % 2 != 0: message = 'Weird' elif n in range(2,6): message = 'Not Weird' elif n in range(6-21): message = 'Weird' else: message = 'Not Weird' print(message)
Seems like cookies are disabled on this browser, please enable them to open this website
Python If-Else
You are viewing a single comment's thread. Return to all comments →
This fails on the numbers 18 and 20 in here, but runs correctly locally on python 3.12.7