Python data types

LIST list are ordered sequences ,which can hold variety of object types , it’s also mutable . They are represented by [],and ‘,’ is used to separate objects .It supports indexing and slicing . my_list=[‘kaka’,100,6.42]1.len(my_list) = 32.my_list[0] = ‘kaka’3.my_list[1:] = [100,6.42]4.my_list.append(‘element’) = adds the element at the end of the list 5.my_list.pop() = removes the […]


Read More Python data types