atx crypto club



Anon Ymous

Tue Jan 28 00:29:58 2020
<58f4c611> got a nooby python question
<58f4c611> if i have a list, say
<58f4c611> “`l = [’20’,’30’,’50’,’60]“`
<58f4c611> “`l = [20, 30, 50, 60]“`
<58f4c611> and i want to iterate a loop the number of times corresponding to each item in the list, how do i do that?
<58f4c611> like loop one i want to read l[0] and it will then loop 20 times. then i want it to read l[1] and then it will loop 30 times, etc down the list.

Back to top