If you have solved some sort of coding challenges online that have to do with lists, you know that you usually need to have access to indices and also elements in it.
You may also have to do that while you are working on your tasks.
Continue readingSoftware engineering and personal development
If you have solved some sort of coding challenges online that have to do with lists, you know that you usually need to have access to indices and also elements in it.
You may also have to do that while you are working on your tasks.
Continue readingPython is known to be the language that gives you the ability to write a few lines of code that can do a lot of things.
Just a few Python lines can be enough to pull data from an API that you can then also visualize in a fancy diagram.
Or even a single line of code can be enough for you to do plenty of things.
There are a lot of Python one-liners online that you can find.
Continue readingStrings are pretty common in our day-to-day programming lives. One common task that we may need to do is perform a switch from one case to another one.
Of course, it’s not supposed to be a standalone task in Jira. Rather, it can be just a tiny portion of a larger task.
Since your time is valuable and you can invest it in more useful things, it is worth knowing that you can do such switches quickly in Python with built-in functions without having you do any implementation.
Continue readingOne task that you may have to do from time to time is to convert a string into a list of values.
This may be done in different forms, but in this article, we are going to see 2 ways.
Continue readingIn a previous post, we talked about ways of checking whether 2 strings are anagrams using Counter() from the collections module.
In this article, we are going to mention another way of checking whether 2 strings are anagrams using sorted() method.
Continue readingChecking whether a word is an anagram of another one can be a question that is quite common in coding interviews.
If you don’t know what an anagram is, here is a definition:
An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once. For example, the word anagram itself can be rearranged into nag a ram, also the word binary into brainy and the word adobe into abode.
Continue readingIn real-world applications, you may need to compare two custom objects that you have defined.
Maybe you need to compare them based on certain criteria, or their certain attributes.
Let’s say you have a class called Game and you want to be able to compare games based on their scores.
Continue readingOne of the most common ways of finding the first element in a list in Python is using the index 0.
I was recently thinking of coming up with a more creative idea and I figured out another way.
It’s not something that you may have not figured out yourself. It also doesn’t mean that someone doesn’t know it.
Still, there is always someone who may also find it helpful or that hasn’t had the chance to have time to think about it.
Continue readingYou have probably come across situations in which you needed to convert a string into a date in Python. There are a few ways to do that, but you may have not had the chance to use the following method.
It’s not that it is so special that you cannot learn, or that it is so difficult what’s going on. It’s basically a rare conversion that you have not had the chance to stumble upon before.
Continue readingAs Python is one of the most popular languages right now, many developers from other languages may also start using it whether that is just on a side project, or a simple script that can help them automate some tasks.
They may have been able to see how to actually find the index in an array, for example in Java, where you write the name of the array and also the index in the brackets. This is also available in Python.
Continue reading© 2026 Fatos Morina
Theme by Anders Noren — Up ↑