Hey there,
I just started out python and I was doing a activity where im trying to find
the max and min of a list of numbers i inputted.
This is my code..
num=input("Enter list of numbers")
list1=(num.split())
maxim= (max(list1))
minim= (min(list1))
print(minim, maxim)
So the problem is th
Sorry for the multiple questions but my while loop is not working as intended.
Here is the code :
n = 1
list1 = []
count = 0 #amount of times program repeats
steps = 0 # amount of steps to reach 1
step_list = []
while n!=0:
n= int(input())
list1.append(n)
length = len(list1)
while count