From e10797984eefbed9244c5665f0e7d71839d1ee64 Mon Sep 17 00:00:00 2001 From: standenboy Date: Wed, 27 Dec 2023 17:01:19 +0000 Subject: updated submodule --- comp/while/1.py | 10 ---------- comp/while/2.py | 13 ------------- 2 files changed, 23 deletions(-) delete mode 100755 comp/while/1.py delete mode 100755 comp/while/2.py (limited to 'comp/while') diff --git a/comp/while/1.py b/comp/while/1.py deleted file mode 100755 index 08a4e21..0000000 --- a/comp/while/1.py +++ /dev/null @@ -1,10 +0,0 @@ -num = 0 -highest = 0 -lowest = 0 -while num != -1: - num = int(input("num: ")) - if num > highest: - highest = num - if num < lowest: - lowest = num -print("the highest value was",highest,"and the lowest value was",lowest) diff --git a/comp/while/2.py b/comp/while/2.py deleted file mode 100755 index 7929862..0000000 --- a/comp/while/2.py +++ /dev/null @@ -1,13 +0,0 @@ -import random - -guess = -1 -ans = random.randint(1,100) - -while guess != ans: - guess = int(input("guess: ")) - if guess < ans: - print("higher") - elif guess > ans: - print("lower") - - -- cgit v1.2.3