Let's say i have a list of lists. i want to iterate through every index in every list, and use it in another func. So:
def func_a(self):
for i in range(len(big_list)):
current_list = big_list[i]
for j in range(len(current_list):
char_iter = iter(current_list)
def func_b(self):
<<here i want to use the next char from iter>>
<<how do i do it>>
Things I have tried:
- next(func) -> Error
- next(char_iter) - > Last Char
note: i write this funcs in a class.
for i in range(len(big_list)): current_list = big_list[i]is a poor way to do iteration. Much better to dofor current_list in big_list