Module 2: About String Video part 1: About string - String in double quote - Sentence use single quote - doc string, block of string uses triple single quote ''' - Use variable that makes sense Video part 2: String - print - print can manualy say where to end by saying ..., end=' ' - Join string : ' '.join(['apple', 'pie']) -> apple{space}pie - Split: myString.split('_') -> becomes a list Video part 3: String - len(myString) - Escape \ tab Video part 4: lower and upper - myString.lower() - myString.upper() - Can use direct 'apple'.lower() - myString.strip(): remove white space both ends of the string - lstrip() and rstring() - 'a,b,c'.replace(',', '|') -> a|b|c -------- Numbers part 1 & 2: integer,float,% modulo, // whole number List Part 1: can be anything [1, 2, 3] - index - slicing [startIndex:endIndex] up to endIndex but not including endIndex Part 2: list continue - myList.append() - myList.insert(insertIndex, 'things to add') - can do + operation - list1.extend(list2) - 'a' in myLIst -> result boolean - list_1.copy() - delet member in the list list myList.remove(value) -> but only remove the fist occurence myList.pop(index), del myList(index) -------- Tuples - Same like list but cannnot change cannot immutable When creating a list but don't allow to update --------- Dictionaries Part 1: - like key-value list {'key1':'value1', .....} - myTyple['key1'] : error out if key value dosnt exist Part 2 - myTuples.get('key') : DOES NOT error out if key does not exist -> give None value - myTyples.keys() : Will get an object of keys -> list(dictionary_keys_object) -> give list of keys - key_value_list = list(user_info.items()) : To list all key-pair Part 3: