def shlyapa znach1 znach2 operation if operation result znach1 znach2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
def shlyapa(znach1, znach2, operation):
if operation == '+':
result = znach1 + znach2
elif operation == '-':
result = znach1 - znach2
elif operation == '*':
result = znach1 * znach2
elif operation == '/':
result = znach1 / znach2
return result