Python Write Excel File

Python Write Excel File The Python xlwt module is used to write an excel file and perform multiple operations on it. It can be used to write text, numbers, and formulas for multiple worksheets. It also supports a feature like …

Read morePython Write Excel File

Python Read Excel file

Python Read Excel file Excel is the spreadsheet application for Window, which is developed by Microsoft. The Excel stores data in the tabular form. It provides easy access to analyze and maintain the data. It is widely used in many …

Read morePython Read Excel file

Python Sending Email

Python Sending Email Simple Mail Transfer Protocol (SMTP) is used to handle sending e-mail and routing e-mail between mail servers. When we send an email either form a web-application or from a local software running in our computer, our computer …

Read morePython Sending Email

Python Regex

The regular expression is a sequence of characters, which is mainly used to find and replace patterns in a string or file. Regular expressions help in manipulating, finding, replacing the textual data. Python provides the “re” module, which supports to …

Read morePython Regex

Python Date time

Python provides a module named datetime to work with the date and time. Sometimes in the real life application development, we need to work with the date and time. The date is not a separate data type in Python, but …

Read morePython Date time

Python Modules

Python Modules The Python module is a collection of definition and statements. It can contain functions, classes, and variables.  Combining the related code into a module makes the code easier to understand and use. In the simple words, a Python …

Read morePython Modules

Python Comments

Python Comments Comments are essential for any programming language. It provides the readability to our program, and the Python interpreter ignores the commented code. There are two ways to apply comment in the Python code. It is very good to …

Read morePython Comments

Python File Handling

What is the file? The file is a collection of data in a single unit. It is used to store information in the non-volatile memory such as hard-disk. Computer programs generally run on the RAM (Random Access Memory) which is …

Read morePython File Handling

Python Read CSV file

The CSV stands for “comma-separated value,” which is defined as a simple file format that is used to store data into a tabular form such as a database or spreadsheet. It is a plain text file, which means, it can …

Read morePython Read CSV file

Python Assert

Python Assert Python provides an assert statement which is used to check the logical expression. If the given logical expression is true, then it precedes for the next line; otherwise, it raises an Assertion Error. It is also a debugging …

Read morePython Assert

Python Operators

Operators in Python programming An operator is a symbol that operates on one or more operands. An operand is a value or a variable on which we perform the operation. Consider the example 6+9, Here 6 and 9 are called …

Read morePython Operators

Python Function

Python Function A Python function is a reusable, organized block of code that is used to perform the specific task. The functions are the appropriate way to divide an extensive program into a useful block. It also provides reusability to …

Read morePython Function

Python List

Python List The list is one of the most versatile, mutable data-structures in Python. It can store heterogeneous data or different types of data. The list contains comma-separated values (item) within the square brackets. Creating a list in Python is …

Read morePython List

Python Dictionary

Python Dictionary A Python dictionary is a mutable collection of unordered key- values pair data. It stores key along with its value, so that a key can access its respective value. A Python dictionary stores dictionary items that can be …

Read morePython Dictionary

Python md5() function

Python md5() function The md5() function in PHP calculates the md5 hash of a string. Syntax

Parameter str(required)- This parameter specifies the string. raw_output(optional)- This parameter specifies a hex or binary output format: TRUE – Raw 16 character binary …

Read morePython md5() function

Python md5_file() function

Python md5_file() function The md5_file() function in PHP calculates the md5 hash of a given file. Syntax

Parameter filename(required)- This parameter signifies the file to be calculated. raw_output(optional)- It takes a boolean value that specifies hex or binary output …

Read morePython md5_file() function

Python ltrim() function

Python ltrim() function The ltrim() function in PHP removes whitespace or other predefined characters from the beginning or left side of a string. The related functions are as follows: rtrim() – This function is used to remove whitespace or other predefined …

Read morePython ltrim() function

Python if-else

Python if-else The else statement is associated with if statement. An else statement executes if the conditional expression in if the statement becomes false or a Zero value. If the conditional expression is false, then control transfers to the else …

Read morePython if-else

Python List

The list is one of the most versatile, mutable data-structures in Python. It can store heterogeneous data or different types of data. The list contains comma-separated values (item) within the square brackets. Creating a list in Python is simple as …

Read morePython List

Python list()

The list() class in Python creates a list object where the list object is a collection which is ordered and changeable. Syntax

Parameter Iterable: It is a required parameter which represents a sequence, collection or an iterator object Return It returns …

Read morePython list()