Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def suma(a,b):
- return a+b
- def roznica(a,b):
- return a-b
- def wypisz(dzialanie, a,b):
- print(dzialanie(a,b))
- a=2
- b=1
- print('%i no i %i' & {a,b})
- wybor = input("Zdecyduj sb chuju: (s/r)")
- if wybor=='s':
- funkcja = suma
- elif wybor=='r'
- funkcja = roznica
- wypisz(funkcja, a, b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement