From 226162599a9c6e8e59a0b070773cb7d73e53ceac Mon Sep 17 00:00:00 2001 From: Antonio MATTAR <antonio.mattar@etu.univ-amu.fr> Date: Fri, 8 Jul 2022 11:05:28 +0200 Subject: [PATCH] -fixed a bug in show numbers --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index a8c46f3..49fcdfd 100644 --- a/main.py +++ b/main.py @@ -141,6 +141,8 @@ def run_show_numbers(path): if choice ==1: clear() terme = int(input('Enter a number: ')) + while terme < 0: + terme = int(input('Enter a number: ')) t = app_functions.dec_to_church(terme) print('Voici le terme:',logic.to_string(t)) logic.captureImage(t,path,'ENTIER'+str(terme),False) -- GitLab