What are tuples in Python

Python Tuples Python tuple is a collection or an array which is used to store various types of data. Features of Python Tuples: They are ordered and unchangeable. They are written within round brackets. They can store multiple types of data. They are immutable. Thus, it cannot be modified. Python Read more…

What are list methods in Python

Python lists Python list is a collection or an array which is used to store various types of data. Syntax: <list_name>=[value1,value2,value3,…,valuen] Features of Python Lists: They are ordered and changeable. They are written within square brackets. They can store multiple types of data. They are mutable. Thus, modify the current Read more…

What are Python strings

Python Strings In Python, String literals are characterized either by single quotation marks, or double quotation marks surrounding them. The string literals can be single line or multiple line strings. Strings in Python is a list, where each character represents an element of the list. Python String Methods: METHODS USES Read more…

What is Python inheritance

Python inheritance Like Java and C++, Python is also based on OOPs Concept, i.e, Python is an object-oriented programming language which uses classes and objects for computations. The property of acquiring all the properties and behaviors of the parent object by an object is termed as inheritance in OOPs. This Read more…

what are Constructors in python

Constructors in python Python Constructors: Python facilitates a special type of method, also called as Python Constructors, to initialize the instance members of the class and to verify enough object resources for executing any startup task. Types of Constructors: Parameterized Constructor Non- Parameterized Constructor Features of Python Constructors:  In Python, Read more…

What Is python object class

Python object class Like Java and C++, Python is also based on OOPs Concept, i.e, Python is an object-oriented programming language which uses classes and objects for computations. Python Class: A collection of Objects is termed as Class in OOPs concept. Every class has its own unique and distinguishable attributes Read more…

What is a pass in Python

Python Pass Python Pass statement is used to pass by without the execution of current iteration in between the loop. Syntax: loop/conditions statements: statements pass Example: //pythonexample.py print “Extracting terms from word ALPHA_NUMERIC.CHARACTERS:” for x in “ALPHA_NUMERIC. CHARACTERS”:   if x == “.”: print “n” continue   if x == Read more…