You are viewing a single comment's thread. Return to all comments →
I tried the below approach but got the last case as wrong. What could be the problem. Can anyone tell.
I am using python for dsa
if (N % 2 == 0): if (N > 2 and N < 5) or (N > 20): print('Not Weird') elif (N>5 and N<20): print('Weird') elif (N % 2 == 1): print('Weird')
Seems like cookies are disabled on this browser, please enable them to open this website
Day 3: Intro to Conditional Statements
You are viewing a single comment's thread. Return to all comments →
I tried the below approach but got the last case as wrong. What could be the problem. Can anyone tell.
I am using python for dsa