Python: Diamond Problem

Some programming languages, such as Python, C++, etc, allow classes to inherit multiple other classes (i.e. allow multiple inheritance). Hence, when we inherit multiple classes from another, different types of…

0 Comments

What is -> in Python?

Summary: In this tutorial, we will learn the significance of the -> (arrow annotation) in Python programming language. The -> in Python is one of the function annotations that was…

6 Comments

Python: Comments vs Docstrings

Comments in Python improve the readability of the program, it explains the code in a language that is easy to understand whereas docstrings describe what the code does, it does…

0 Comments

What is sys.argv in Python?

Summary: In this tutorial, we will learn what is sys.argv in Python, what are its significances and how can we use it in our Python program. Most of the time…

0 Comments