it's a calculator you can try the code here: https://www.online-python.com/ after knowing python fully I realized that you just could’ve used an eval function to do it with .replace() and adding some regex… great.