The index in a string is the position of a substring that is part of that string.
When you want to check whether a string in Python starts with a specific character, you can specify the index 0 and write the name of the variable of the string in front:
It is really hard to think about a real world project in which you are not going to have strings. As a result, having pre-existing methods for manipulating strings is really productive, as it saves you time. In today’s article, I want to emphasize a particular method in Ruby on Rails, that’s surprisingly not that much well known, which helps you with the whitespaces. Continue reading
Two weeks ago, I wrote an article telling how we do not have the courage or the determination to face with difficult tasks that we have at hand and suppose that we might postpone important things for the future, expecting that somehow, we are going to be ready to finish them. For those of you that might have not been convinced yet, I would suggest you to reevaluate your opinion by answering the following questions and then be able to think whether you should keep postponing your task. You do not have to answer them for me, but for your own selves. Continue reading
We might be very fast at starting something, but we usually find ourselves quitting from and not finishing. The reasons why we quit might differ based on your own personality or your own circumstances, but this should not be as a curse that you think you should carry for the rest of your life. Rather this should serve as a lesson of hesitating to start everything that comes to you, and start working only on the things that you are ready to put sweat and tears towards them – in other words, you do not plan to quit at least for a few coming years. Continue reading
A lot of people start enthusiastically running a marathon and are very happy and proud to see other people watching them while running. However, the number of runners who manage to finish the marathon that they start is very small in comparison to the original number of runners that started the difficult journey. If we take this and wonder whether we can learn something from this case, the immediate response that should pop up into our heads is: Yes, we have started countless marathons in our own lives and never finished them. Continue reading
Get a free PDF guide on How to be Super Productive and Get More From Life
I am an experienced and passionate Senior Software Engineer with a demonstrated history of working in the full life cycle of software development with enormous curiosity for data science, machine learning, algorithms, data structures, and solving challenging problems. I am an open-source enthusiast at https://github.com/fatosmorina and also a writer.
I am open for new opportunities.