string Methods (Strings)
Use string methods to print the following strings. Remember that methods work by
adding the function to the end of the object name using a .
, like
mystring = 'Hello World'
print mystring.lower()
'species'
in all capital letters'gcagtctgaggattccaccttctacctgggagagaggacatactatatcgcagcagtggaggtggaatgg'
with all of the occurences of'a'
replaced with'A'
" Thank goodness it's Friday"
without the leading white space (i.e., without the spaces before"Thank"
)- The number of
'a'
s in'gccgatgtacatggaatatacttttcaggaaacacatatctgtggagagg'
.