Advertisement
romerlrl

Untitled

Oct 17th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. def paridade():
  2.     mod = int(input()) % 2
  3.     if not(mod):
  4.         print("par")
  5.     else:
  6.         print('impar')
  7.  
  8. def imparidade():
  9.     mod = int(input()) % 2
  10.     if mod:
  11.         print("ímpar")
  12.     else:
  13.         print('par')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement