#Example1 from seqtools import remove_at #no .py s = "A string!" print remove_at(4, s) import seqtools #no .py s = "A string!" print seqtools.remove_at(4, s) #Exmaple2 mylist=[5,27,3] print mylist.append(12) print mylist #[5,27,3,12] print mylist.insert(1, 12) print mylist #[5, 12, 27, 3, 12] print mylist.count(12) #2 print mylist.extend([5, 9, 5, 11]) print mylist #[5, 12, 27, 3, 12, 5, 9, 5, 11] print mylist.index(9) #6 print mylist.count(5) #3 print mylist.reverse() print mylist #[11, 5, 9, 5, 12, 3, 27, 12, 5] print mylist.sort()
#Example1 from seqtools import remove_at #no .py s = "A string!" print remove_at(4, s) import seqtools #no .py s = "A string!" print seqtools.remove_at(4, s) #Exmaple2 mylist = [5, 27, 3] print mylist.append(12) print mylist #[5,27,3,12] print mylist.insert(1, 12) print mylist #[5, 12, 27, 3, 12] print mylist.count(12) #2 print mylist.extend([5, 9, 5, 11]) print mylist #[5, 12, 27, 3, 12, 5, 9, 5, 11] print mylist.index(9) #6 print mylist.count(5) #3 print mylist.reverse() print mylist #[11, 5, 9, 5, 12, 3, 27, 12, 5]