Been writing for some time a side project in the Python computer programming language, there was a case when I had to check if a string object started with a specific character or not. Then based on the status of the condition, I had to make sure to run different branches of the project’s code.
The good thing is that the Python computer programming language is so rich in features, that almost anything can be accomplished by making use of builtin utilities. According to my personal experience with the Python scripting language, the string object has a specific builtin method which can be used to check if it starts with a specific character or not. Continue reading “How to check if a Python string starts with a specific character”