+ 1

Por que da error al colocar de entrada adicion, sustraccion, multiplicacion y division?

while True: print("options") print("adicion") print("sustraccion") print("multiplicacion") print("division") print("quit") hello=input(":") if hello=="quit": break elif hello=="adicion": world=float(input(":")) world2=float(input(":")) print(world+world2) elif hello=="sustraccion": world=float(input(":")) world2=float(input(":")) print(world-world2) elif hello=="multiplicacion": world=float(input(":")) world2=float(input(":")) print(world*world2) elif hello=="division": world=float(input(":")) world2=float(input(":")) print(world/world2) else: print("error")

30th Sep 2019, 1:14 PM
David Yauca
David Yauca - avatar
1 Resposta