Name

.startswith()

Examples
message = "Now is the winter of our discontent."
if message.startswith("Now"):
	print("Made glorious summer by this sun of York.")

Description Returns true if the string begins with the specified substring, and false otherwise.
Syntax
a.startswith(sub)
Parameters
subsubstring to search for
Related string
String Formatting
.find()
.strip()
.join()
.replace()
Updated on Tue Jul 11 06:52:24 2017.
Creative Commons License