Napisz kalkulator w języku Python, który będzie w stanie wykonywać obliczenia z przecinkiem (np.1.5,2.8).
Obecnie zrobiłem kalkulator tylko, że jest on bez możliwości użycia liczb z przecinkiem, jeżeli będzie łatwiej zrobić to z moim dotychczasowym efektem, to poniżej załączam skrypt.
print("...:::Prosty Kalkulator:::...")
x = int(input("Insert the first number:"))
y = int(input("Insert the second number:"))
z = input("What type of operator you want to use(+,-,*,/,**)")
if z == "+":
print(operators["+"])
elif z == "-":
print(operators["-"])
elif z == "*":
print(operators["*"])
elif z == "/":
print(operators["/"])
elif z == "**":
print(operators["**"])
else:
print("Error: operator not found(make sure you used the designated operators)")