BIO 3360 Lecture Notes - Lecture 3: Delimiter
Document Summary
Lecture 3 - more data structures and manipulations. Midterm is next week, on everything covered so far. Len function to find number in one string. To access a character in a string, use [] operator with specified index (s[i] Can take a second argument as where it should start. Can take third argument as where it should stop. Operator to see if the first string is in the second one. Like a string, list is a sequence of values. Values are characters that can be any type. Values in the list called elements or sometimes items. Can use range to go through a list. Remember these are void methods --> need to print otherwise no output. To delete the last element on the list and also print it. List(x), separate each character in string to one element each in list. Breaks down a string into words by a space characters. Split it by where there is an a.