Classes and Objects in Python

Classes and Objects in Python

Classes and Objects in Python Class In object oriented programming, a class contains procedures and data members. And treated as an abstract data type. Object An object is an instance of a class.   In…


User Defined Functions in Python

User Defined Functions in Python

Function- A function is a self-contained block of statement to perform a specific task. Basically, there are two types of function Library Functions These functions are are provided by a Python’s package and a user…



Array in Python

Array in Python

Array in Python Python does not have in-built array. However, in C/C++ and Java you have learnt array and have expectation that it would be in Python. Further, array also a very important data structure…


No Image

Dictionary in Python

Dictionary in Python Dictionary in Python is collection of unordered items. Python provide in-built support for dictionary. Unlike, other in-built data structures in which they have single value such list, tuple and set. Python uses…


Tuples in Python

Tuples in Python

Tuples in Python Tuples in Python are ordered collection of items(integer, float, string) which are immutable. The only difference from list you can notice that a tuple in Python is immutable. Further, it uses parenthesis…


Decision Making in Python

Decision Making in Python

  Decision making is fundamental in making a program. All programming languages provide in-built structure for it and Python is not exception. In this post, I will explain decision making using if else statements. Syntax…


No Image

Sets in Python

Sets in Python Set is an unordered collection of unique elements. Items in sets are immutable which can not be replaced or changed. Elements of a set can not be accessed using indexing or a…