Question/Solution - 7 June 29, 2022 Question l = [ 34 , 0 , - 12 , - 78 , 43 , 0 , 6 , - 1 , 0 , 86 , - 100 , 56 ] # [56, 0, -12, -78, 43, 0, 6, -1, 0, 86, -100, 34] ...Read More
Question/Solution - 6 June 25, 2022 Question l = [ 34 , 0 , - 12 , - 78 , 43 , 0 , 6 , - 1 , 0 , 86 , - 100 , 56 ] # Negative => [-12, -78, -1, -100] # Positive => [34,...Read More
Nested List June 21, 2022 Nested List l = [[ 1 , 2 , 3 ], [ 4 , 5 , 6 ], [ 7 , 8 , 9 ]] print ( len ( l )) print ( l [ 1 ]) print ( l [ 2 ][ 0 ]) for sl in l : ...Read More
Looping on lists June 19, 2022 Looping on Lists lang = [ "Python" , "Java" , "Javascript" , "C++" , "C#" ] for i in ...Read More
Join & Split Function June 17, 2022 Join & Split Function #split function # str ---> list string = "Xtra Coding" print ( string . split ( " " )) # ...Read More
is keyword V/S == June 16, 2022 is keyword V/S == lang1 = [ "Python" , "Java" , "Javascript" ] lang2 = [ "C++" , "Java" ...Read More
List Methods June 14, 2022 List Methods lang = [ "Python" , "Java" , "Javascript" , "C++" , "Java" , "C#"...Read More
Methods to delete data from the lists June 06, 2022 Methods to Delete Data from the Lists string = [ "string1" , "string2" , "string3" , "string2" , ...Read More
Methods to add data to the lists June 05, 2022 Methods to Add Data to the Lists string = [ "string1" , "string2" ] #append string . append ( "string3" ) pr...Read More