programming-examples/python/String/Python program to check whether a string starts with specified characters.py

2 lines
61 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
string = "w3resource.com"
print(string.startswith("w3r"))