Using for loops when iterating through 2 lists that have different lengths can be error-prone, especially when the lengths of these lists can change with time.
Let us see an example to see when that happens:
Continue readingSoftware engineering and personal development
Using for loops when iterating through 2 lists that have different lengths can be error-prone, especially when the lengths of these lists can change with time.
Let us see an example to see when that happens:
Continue readingIf you want to print multiple things in the same line, you do not need to clutter everything with the plus operator, or do some type of conversion and then do the concatenation.
For that, we are going to use the help of the “end” parameter inside the print() method indicating the type of separator that you want to use between the items that you want to print.
Continue readingOne of the first things that you learn when you start to program is learning how to declare a variable and assign to it a value.
For example, you are told to assign a string and then print it in a console:
Now, if we want to assign another variable in there, our intuition can be to just add a new line, and assign it there:
Continue readingLists represent one of the most used data structures in any Python script. One of the reasons why I like programming in Python is that I get to reach a result quite quickly.
One such thing is the opportunity to easily and quite simply access their elements quite flexibly.
With flexibility, I mean, having the opportunity to choose only the elements that we want.
Continue readingOne of the main uses of methods in any programming language is the opportunity to simply implement a functionality once and then use it as many times as you need.
In a lot of cases, you are supposed to call these functions with actual parameters that are then expected to be used inside the method.
Continue readingIf you like Hacker News, but feel that it’s pretty diversified and would want something that is more closely related to Data Science, then here is DataTau.
Continue readingData Science is one of the hottest fields right now, with many job openings even during this pandemic.
Such need of people with data science skills inspires many people to find resources that they can use and learn from to learn and prepare to get such jobs.
Continue readingIf you are reading this, chances are that you use GitHub on a regular basis.
Maybe that’s because you need to create new repositories for your personal side projects, or simply because you have to push your latest changes in a work project.
Continue readingYou hear a lot of complaints from many people being in quarantine these days. Shops, coffees, restaurants getting closed. Countries getting into lockdown.
Continue readingPython represents one of the most popular languages that many people use it in data science and machine learning, web development, scripting, automation, etc.
Continue reading© 2024 Fatos Morina
Theme by Anders Noren — Up ↑