Tuples
What is tuple
What is tuple
Unlike Lists interface and primitive type arrays in Java, Python has only one such type for representing lists i.e. list. Let’s dive in code directly.
When it comes to inheritance Python is bit different from Java. Firstly there is no interface keyword in Python, to define contracts a module named Abstract ...
Name, class methods is confusing, but keep in mind that they are not static or instance methods. Basically Python has three type of methods:
In Python, classes can have static methods. However there is no real concept for static variables, it can be achieved but that is more advanced than the curr...
In Python there is no concept of access modifiers. There is no keywords like protected, private and public. So how do we encapsulate data, how do we stop any...
Python has similar concept of classes as Java does, although there are many differences between both language implemenations. Let’s first see how classes are...
In Python functions start with def keyword followed by function name and the paranthesized list of parameters. The statements that form the body of the funct...
Coming from Java background we have accustomed to writing variable as follows :
If Else statements
This is customary introduction which prints Hello World out there on console.