You are viewing a single comment's thread. Return to all comments →
Or we can do like this without using a loop
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 →
Or we can do like this without using a loop
***n=int(input("enter an integer:"))
mod=n%2
if mod!=0:
print("Weird")
if mod==0 and n>1 and n<=5:
print("Not Weird")
if mod==0 and n>5 and n<=20:
print("Weird")
if mod==0 and n>20:
print("Not Weird")
*