Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. z = int(input("enter a number:"))
  2.  
  3. def checkz(z):
  4. if (z <= 0) :
  5. print ("i dont know what to call zero or -ve numbers -_-, why dont you enter another number")
  6. z1 = int(input())
  7. checkz(z1)
  8. elif (z%2 == 0) : print("its even")
  9. else : print("its odd")
  10. checkz(z)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement