s =    'hello my name is bob'
#index  01234567890123456789
#                          -1

print(s.isalpha())
print(s.islower()) # no upper case letters in s

print('78ab'.isidentifier())
# error
# 78ab = 3

print(s.startswith('hello'))
print(s.endswith('is Bob'))

print(s.split())


s2 = '''hello my name is bob
and who are you
...
'''
print(s2.split('\n'))

print('last,first,email,id,major'.split(','))

print('\t\nhello...   '.strip())

print('Hello'.upper())
print(s[0], s[-1], s[8], s[15], s[2:5], s[6:], s[:10], sep='|')

print(len('hello ball'))


s =    'hello my name is myles'
print(s.index('my')) # my is a substring of s
print(s.count('e'), s.count('E'), s.count('my'))

# this would be an error
# s[0] = 'H'
# do this instead
s = 'H' + s[1:]
print(s)
