print("Calculadora 2")
task = input("Choose a task (+, -, *, /): ")
n1 = input("Number 1: ")
n2 = input("Number 2: ")
print(float(n1 + task + n2))
When I try to run this code it says: ValueError: could not convert string to float: '2+3' How can I make it not a string and a number(float).