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 |
| ||
Related |
string String Formatting .find() .strip() .join() .replace() |
Updated on Tue Feb 27 14:07:12 2024.
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License