From 2a59cd9a1e69c60f0260fcd18700714b66436d30 Mon Sep 17 00:00:00 2001 From: Dm1tr1y147 Date: Mon, 26 Oct 2020 17:26:54 +0500 Subject: [PATCH] Fixed number input --- interpreter/tokenFunctions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreter/tokenFunctions.py b/interpreter/tokenFunctions.py index cb70b70..4761338 100644 --- a/interpreter/tokenFunctions.py +++ b/interpreter/tokenFunctions.py @@ -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)