Python Programming List method full details
How to download python? To download the python latest version click this link . To download the Py charm click this link . Day 1: Python learn to start on 6/1/2021 Topic: Some Method of the list: Method Name # 1. To add element on the list or in other also we can use append( ) and extend( ) .append( ) we can use .append( ) in two ways i. code : list = [ 1 , 4 , 9 , 'girl' , True ] list2 = [ "hari" , False , 45 , 77 ] list . append ( list2 ) print ( list ) Result: [1, 4, 9, 'girl', True, ['hari', False, 45, 77]] To add multi-element we use extend() which we will discuss below. ii. Simply we use append( ) method for add only one element example: Code: list = [ 1 , 4 , 9 , 'girl' , True ] list . append ( 45 ) print ( list ) .extend( ) We use extend( ) method for adding multi-element. Example given below: Code: list =...