python check if string begins with pattern code example Example: python startswith str.startswith(prefix[, start[, end]])