print("Made by Danpain / Daniel Monteiro.")
math = input("Your maths:\n")
if "+" in math:
opm = math.index("+")
print(int(math[0:opm]) + int(math[opm + 1:]))
elif "-" in math:
opm = math.index("-")
print(int(math[0:opm]) - int(math[opm + 1:]))
elif "*" in math:
opm = math.index("*")
print(int(math[0:opm]) * int(math[opm + 1:]))
elif "/" in math:
opm = math.index("/")
print(int(math[0:opm]) / int(math[opm + 1:]))
Pic