def str_startswith():
    text = 'abcd'
    if text.startswith('ab'):
        print('yes')


def str_endswith():
    text = 'abcd'
    if text.endswith('cd'):
        print('yes')


if __name__ == "__main__":
    str_startswith()
    str_endswith()

def str_startswith():
    text = 'abcd'
    if text.startswith('ab'):
        print('yes')


def str_endswith():
    text = 'abcd'
    if text.endswith('cd'):
        print('yes')


if __name__ == "__main__":
    str_startswith()
    str_endswith()
