Check if it starts with the argument string
object.startswith(string)
object = 'AIUEO' string1 = 'Ah' string2 = 'Iue' >>> print(object.startswith(string1)) True >>> print(object.startswith(string2)) False
Recommended Posts