TrickmanOff

Untitled

Mar 29th, 2022
1,444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. def examf(a, b):
  2.     if a % 2 == 0 and b % 2 == 0:
  3.         return a + b
  4.     elif a % 2 == 1 and b % 2 == 1:
  5.         return a * b
  6.     else:
  7.         return a / b
Advertisement
Add Comment
Please, Sign In to add comment