summaryrefslogtreecommitdiff
path: root/comp/while/1.py
blob: 08a4e211819c95ed26eba7625aeae2d960bc5805 (plain)
1
2
3
4
5
6
7
8
9
10
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)