PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""
Calculator
Inspired by Jamie's code
https://code.sololearn.com/cBVsQw3izizM/?ref=app
Author: Mert Yazıcı
Input: A math expression
Examples:
input: sin(90°)
output: 1
input: 6 / 2*3
output: 9
input: 2 ^ 9^.5
output: 8
input: (2)(-2)(-2)
output: 8
input: 2^-3*4
output: 0.5
input: -2^2
output: -4
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run