Posts by roludogamer • 1 point
1 post
-
-2
votes2
answers65
viewsA: Delete a variable the program receives in input.split(" ") in Python
So, that was my way to fix it: dados = input().split(" ") if len(dados) == 3: operation, n1, n2 = dados n1 = flaot(n1) n2 = float(n2) elif len(dados) == 2: operation, n1 = dados n1 = float(n1)…
pythonanswered roludogamer 1