You are viewing a single comment's thread. Return to all comments →
I tried your code : if (n in range (6, 21) or n % 2 != 0): print("Weird") else: print("Not Weird")
its showing TypeError : not all arguments converted during string formatting
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 →
I tried your code : if (n in range (6, 21) or n % 2 != 0): print("Weird") else: print("Not Weird")
its showing TypeError : not all arguments converted during string formatting