Advertisement
rezamalik15

mycalculator.py

Mar 25th, 2023
938
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. def addition(a,b):
  2.     return f"{a} + {b} = {a + b}"
  3.  
  4. def substraction(a,b):
  5.     return f"{a} - {b} = {a - b}"
  6.  
  7. def multiplication(a,b):
  8.     return f"{a} x {b} = {a * b}"
  9.  
  10. def division(a,b):
  11.     return f"{a} / {b} = {a / b}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement