+ 1
Whatâs wrong with this code?
Basically, Newarray contains a list of numbers, array contains a list of text. I want this function to print the test from indexes given by newarray. Itâs currently retuning only the first letter in the first word. def joining(newarray, array):     hello = 0     start = 1     for number in newarray:         print(''.join(array[hello:start]))         hello = start         start = + 1         return Thank you
1 Answer
0
it still doesnât print the whole string, is there something wrong with the loop?