What is python modules

Python Modules Python Modules: Modules are the files in python used for grouping similar codes, to get an easy access to those codes. Python Modules facilitates reusability and easy categorization of codes. Python Built In Modules: Python facilitates its users a variety of modules already defined in Python library that Read more…

What is python Files IO

Pyhton files io File handling simply means to open a file and to process it according to the required tasks. Python facilitates several functions to create, read, write, append, delete and close files. ❏     Open File: To open a file in Python, open() function is used. Syntax: f = open(“filename“, “mode“) Filename:  This Read more…

What are Python functions

Python function A function is a block of code that is written once and can be executed whenever required in the program, to produce some output. Types of Functions: Built-in Functions: The Python library already contains some functions that are predefined to perform a specific function. These functions are known Read more…

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…