Python

Python Inheritance

Submitted by moazkhan on

In this tutorial you will learn:

  • Inheritance in Object Oriented Programming
  • Inheritance in Python
  • Overriding in Python OOP
  • Private members of Parent Class

Inheritance in Object Oriented Programming

Inheritance is an important concept in Object Oriented Programming. Inheritance means getting something from the parent and in programming it means the same the child class inherits methods and properties from the parent class. It enables code reusability and resembles real world relationships.

Python Class and Object

Submitted by moazkhan on

In this tutorial you will learn:

  • Classes and Objects
  • Class in Python
  • Object in Python
  • Alter an Object

Classes and Objects

Object Oriented Programming Languages works with two main features Class and Object. In this programming paradigm we create containers that contains different properties and methods. These methods are used to modify the properties in some way and we name these containers as Classes. Objects are instances of a Class and they have access to the properties and methods of that class.

Python Input

Submitted by moazkhan on

In this tutorial you will learn:

  • Input Function
  • Input in Python 2.7
  • Input in Python 3.6
  • Making a simple Calculator

Input Function

This is an important function in programming languages almost all programming languages offer some kind of input function to take values from the user.

Input in Python 2.7

Python For Loop

Submitted by moazkhan on

In this tutorial you will learn:

  • Loop in Python
  • For loop in Python
  • Nested for loop in Python
  • Break statement in for loop
  • Continue statement in for loop

Loop in Python

In programming we sometimes need to execute a block of code again and again and for that we need to use something called loop. Loop helps us to repeat a block of code do something multiple times until a particular condition is satisfied.

For loop in Python