You are viewing a single comment's thread. Return to all comments →
n=24 if n%2 == 1: print("Weird") else: if 2<=n<=5: print("Not Weird") elif 6<=n<=20: print("Weird") elif n>20: print("Not Weird")
My Code is working fine even outputs are correct only even it was telling your code is wrong
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 →
n=24 if n%2 == 1: print("Weird") else: if 2<=n<=5: print("Not Weird") elif 6<=n<=20: print("Weird") elif n>20: print("Not Weird")