Checking whether a string starts with XXXX May 16, 2022 by Tarik aString = "hello world" aString.startswith("hello") More info about startswith.