list.append
method returns None
as it is an inplace operation. Instead of storing the result in other variables, you can use LSTT
and LSTTT
as they are, like this
ci = city.renderContents()
LST.append(ci)
...
...
ti = datesGroup[1].renderContents()
LSTTT.append(ti)
...
...
print(zip(LSTT, LSTTT))
The zip
function returns a list of tuples of corresponding elements of all the input iterables.
If you want to print the zipped result, withtout the tuples, you can iterate over them, like this
for item1, item2 in zip(LSTT, LSTTT):
print(item1, item2)