# Syntax::
# List_Empty = []
# List_Name = [Element_1 , Element_2 , Element_3]
# Operations on List
# .append() ===> adds an element at the end of the list
# List_Name.append(Element_4)
# .extend() ===> add all elements of the list to the other list
# List_Name.extend(other_list)
# List_Name.extend( [List_2_Element_1 , List_2_Element_2 , List_2_Element_3] )
# .insert() ===> inserts an item at a particular index
# List_Name.insert(position,Element_5)
# .remove() ===> removes an item at a particular index
# List_Name.remove(position)
# .pop() ===> removes and returns that element
# New_Variable_1 = List_Name.pop(position)
# .clear() ===> removes all the items from the list
# List_Name.clear()
# .index() ===> returns the index of the first matched item
# New_Variable_2 = List_Name.index(Unkonwn_Element)
# .count() ===> returns the count of number of items passed as an argument
# New_Variable_3 = List_Name.count(Element)
# .sort() ===> sorts the items of the list in ascending order
# List_Name.sort()
# .reverse() ===> reverse the order of the items in the list
# List_Name.reverse()
# .copy() ===> returns a copy of the list
# New_List = List_Name.copy()
# .__len__() ===> returns the size of the list
# New_Variable_8 = List_Name.len()
# Python Slicing
# New_List = List_Name[Start_Position:Stop_Position]
# New_List = List1_Name[Start_Position:]
# New_List = List_Name[:Stop_Position]
# New_List = List_Name[::-1] ==> To Reverse the List
0 Comments