Fixed number input

This commit is contained in:
2020-10-26 17:26:54 +05:00
parent 34974487fb
commit 2a59cd9a1e

View File

@ -258,7 +258,7 @@ def inNOperator(inputDirection: direction, dataStack: List[int]) -> Tuple[direct
inputDirection = copy.deepcopy(inputDirection)
newVal = input("Input number: ")
if newVal.isdigit():
newStack.append(newVal)
newStack.append(int(newVal))
return (inputDirection, newStack)