Fixed number input

This commit is contained in:
Dmitriy Shishkov 2020-10-26 17:26:54 +05:00
parent 34974487fb
commit 2a59cd9a1e
No known key found for this signature in database
GPG Key ID: D76D70029F55183E

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)