If you have already tried printing a statement in Python, you have probably seen that you are going to get a new line after you execute it.
Let’s see a quick example:
Continue readingSoftware engineering and personal development
If you have already tried printing a statement in Python, you have probably seen that you are going to get a new line after you execute it.
Let’s see a quick example:
Continue readingIn the previous article, we saw how to check whether all the values in an iterable object are True in Python.
In this article, we are going to see whether there is at least one condition that is satisfied in an iterable object in Python.
Let us suppose that we have the following list:
We want to see whether we have earned more than 4000 in at least 1 month.
Continue readingThere is a quick way to check whether all the values in an iterable object are True or not in Python.
Let us suppose that we have the following list and we want to check whether all the values in it are True:
Continue readingLooping through a list in Python is quite straightforward.
Let us mention two ways that you can do it.
You can do it using indexes and the length of the list, like the following:
Continue readingThere are many articles and videos that show you how to find the largest in a list. However, there are not that many articles that show you how to find the second largest element in a list or the second smallest element in a list.
Yes, I also agree that it can be less frequent when you need to find the second largest one, or the second smallest element. The less demand for it in our daily work, the less supply with tutorials on how to do it.
Continue reading© 2024 Fatos Morina
Theme by Anders Noren — Up ↑