9 Things You Do That Shows You Are Not A Professional Python Developer
Python is one of the most popular programming languages, its use case is found in web development, data science, artificial intelligence, robotics, and many other areas. In this, article you will learn how to fix the bad habits you have stuck to over the years or brought from other programming languages.
In Python, anytime you pass a mutable value as an argument in a function, the default argument is mutated anytime the function is called. These mutable arguments are usually lists or dictionaries.
This bad habit most at times is common among newbies.
Importing using import * corrupts your namespace by importing all the functions and classes from that named module into your code which is likely to conflict with the functions you define or functions of other libraries imported.
Before I get cancelled 😂, I know some of my codes in this article might have broken the rules of PEP-8, but the truth is bitter and needs to be told, following PEP-8 style and guidelines makes it easier for others to read and understand your code.
0 Comments