How can you check to see what a string starts or ends with? Use the methods str.startswith and str.endswith, of course.
In addition to these videos, I have an active blog and free, weekly "Better developers" mailing list; see more at https://lerner.co.il/ .
Subscribe to this channel, as I try to go through all of the Python standard library!