Jul-25-2020, 05:28 PM
You could use the following:
https://docs.python.org/3/library/stdtyp...startswith Wrote:str.startswith(prefix[, start[, end]])
Return True if string starts with the prefix, otherwise return False. prefix can also be a tuple of prefixes to look for. With optional start, test string beginning at that position. With optional end, stop comparing string at that position.