J
james_027
hi,
I need to do some for loop on iterables which could be empty
sometimes, for example
a_list = []
for i in a_list:
#do something
is this safe? or should I put a if statement to test it first?
Thanks
james
I need to do some for loop on iterables which could be empty
sometimes, for example
a_list = []
for i in a_list:
#do something
is this safe? or should I put a if statement to test it first?
Thanks
james