-startswith() is a python string function which check the string starting point and return True and False as per the argument.
Example-
string is s="mytext"
s.startswith("m") will give True
s.startswith("my") will give True
s.startswith("text") will give False
s.startswith("mytext") will give True
program-
s="someway"
print("Original string is ",s)
print(s.startswith("s"))
print(s.startswith("some"))
print(s.startswith("way"))
print(s.startswith("sume"))
print(s.startswith("someway"))
Original string is someway
True
True
False
False
True