I am new to Python. I have the following nested list and I am adding items to the nested list with multiple append statements. How can I use just one append statement and a loop to append lists to the nested list?Suppose I have up to s100 (s1,s2,...s100) such individual lists which I would add to the nested list. My present code is given below:
s1= ["sea rescue","rescue boat", "boat"]
s2=["water quality","water pollution","water"]
nestedlist=[]
nestedlist.append(s1)
nestedlist.append(s2)
print(nestedlist)