Sorting lists temporarily
Aug 7,97Consider the following list of surnames: last_names = 'Jones', 'Antunovich', 'Daniels', 'Thomson' Let’s print the list: print(last_names) 'Jones', 'Antunovich', 'Daniels', …
Read MoreCheck whether a value is in a list
Aug 7,97You will often want to check if a certain value appears in a list, e.g. during a registration process to …
Read MoreLoop through a list
Aug 7,97Often times you would want to run through all the items in a list and perform the same action on …
Read MoreModify lists
Aug 7,97Changing the value of a list element in Python is easy: my_numbers0 = 6 print(my_numbers0) The output confirms that the …
Read MoreWhat are lists?
Aug 7,97Similar to arrays in some other programming languages, lists in Python are used to store a set of elements under …
Read MoreConcatenating strings
Aug 5,97You can concatenate (combine) strings in Python using the plus sign. Consider the following example: name = 'Mike' surname = …
Read More
