Re: [Tutor] Simple while loop question

2017-05-11 Thread Alan Gauld via Tutor
On 11/05/17 02:50, Rafael Skovron wrote: > I dont understand why j can have any value other than zero in this: > > for i in range(1, 5): j = 0 while j < i: print(j, end = " ") j += 1 Because i can go as high as 4 (from range(1,5)->1,2,3,4). So lets consider that fin

[Tutor] Simple while loop question

2017-05-11 Thread Rafael Skovron
I dont understand why j can have any value other than zero in this: for i in range(1, 5): j = 0 while j < i: print(j, end = " ") j += 1 ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mai