#Appending a List into Tuple and modifying the list : Check the Output

Toiletries = ["Handwash", "FaceWash"]
Tour_Items = ("Water Bottle", "Sandwiches","Slipper",Toiletries)

Toiletries.append(""Bath Soap"")
print(Tour_Items)

Output: (‘Water Bottle’, ‘Sandwiches’, ‘Slipper’, [‘Handwash’, ‘FaceWash’, ‘Bath Soap’])

By Pankaj

Leave a Reply

Your email address will not be published. Required fields are marked *