On Friday, March 18, 2016 at 3:46:44 PM UTC-7, Alan Gabriel wrote:
> 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 = []
>
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