+ 2

Book Title Practice Question

So here is my Book Title Practice code, and I wanted to ask you how can I change the z[0] to z[1],z[2],z[3] and so on in next iterations of the loop. Now I have z[0] in my first iteration in two formulas and it prints the result for every item in the list. To change that I need a z[0]+1 in every next iteration. How can I do that? https://code.sololearn.com/c03I0X4FY5i5/?ref=app

31st Mar 2021, 1:29 PM
Vladislav Umanets
Vladislav Umanets - avatar
3 Antworten
+ 4
I have only changed the variables names for better understanding. This will help you: https://code.sololearn.com/cT7qT5aa588W/?ref=app
31st Mar 2021, 1:47 PM
JaScript
JaScript - avatar
+ 3
Vladislav Umanets You're welcome. Have fun yet.
31st Mar 2021, 2:40 PM
JaScript
JaScript - avatar
+ 1
JaScript thank you!! I was so close 🥺
31st Mar 2021, 1:59 PM
Vladislav Umanets
Vladislav Umanets - avatar