
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 10451 Articles for Python

14K+ Views
Learning Python's Regular Expressions (Regex) may require you to match text that has multiple lines. This can happen when you want to read information from a file or scrape data from a website. This chapter will show you how to match patterns across several lines using Python's re module, which allows you to work with regular expressions (regex). What is a Regular Expression? A regular expression is a group of characters that allows you to use a search pattern to find a string or a set of strings. RegEx is another name for regular expressions. Here is a simple overview ... Read More

15K+ Views
A regular expression in Python is a set of characters that allows you to use a search pattern to find a string or a group of strings. These are used within Python using the re package. To match the end of the string in Python by using a regular expression, we use the following regular expression -^/w+$ Here, $ implies the start with. /w returns a match where ... Read More

12K+ Views
A regular expression in Python is a group of characters that allows you to use a search pattern to find a string or set of strings. RegEx is a term for regular expressions. To work with regular expressions in Python, use the re package. Understanding String Matching in Python String matching is a basic Python method that allows you to look for and find patterns in a given text. The match() function, a component of the re (regular expression) package, is one of the widely used methods for this purpose. Use the match() method to determine whether the beginning of ... Read More

485 Views
A tuple is a collection of python objects that are separated by commas which are ordered and immutable. Tuples are sequences, just like lists. The differences between tuples and lists are, that tuples cannot be changed unlike lists and tuples use parentheses, whereas lists use square brackets. Let us see about the creation of tuples in a detailed way. We can define tuple in different ways as follows - Empty Tuple ... Read More

3K+ Views
Sometimes it is necessary to divide a lengthy list into smaller and easy-to-read data. For example- if you wish to arrange a list of items in groups, it can be helpful to break it into small parts. This is useful for tasks like grouping data for analysis or showing items in a user interface. Python provides various simple methods to do this. In order to work with smaller data sets without losing any information, this article will show you how to split a list into uniformly sized chunks. What is List? List is one of the frequently used data ... Read More

5K+ Views
As you may know a string is a group of letters, numbers, or symbols in Python. Sometimes we do not need the whole string. We may only want a small part of it. For example, we may want only the first 100 characters. Python makes this easy by using something called slicing. Slicing means taking a part of the string. We use square brackets [] with numbers inside to do this. It is a very useful and simple way to get the part of a string that we need. In this article, we will show you how to get ... Read More
338 Views
A list is a data structure in Python that is a mutable or changeable ordered sequence of elements. A list's items are any elements or values that are contained within it. Lists are defined by having values inside square brackets [], just as strings are defined by characters inside quotations. They are used to store multiple items in a single variable. In Python, strings are among the most widely used types. We can create them simply by enclosing characters in quotes. Python treats single quotes the same as double quotes. Creating strings is as simple as assigning a value to ... Read More

56K+ Views
In Python, a list is an ordered sequence that can hold several object types, such as integers, characters, or floats. In other programming languages, a list is equivalent to an array. Square brackets [] are used to denote it, and a comma (, ) is used to divide two items in the list. In this article, we will show you how to get a comma-separated string from a list using Python. Comma-Separated String using join() ... Read More

223 Views
In programming, it is very common to work with lists, which are collections of items. But sometimes, you may want to turn a list into a single string. So in this chapter, we will show you how you can do this in Python. We will use some simple explanations and examples to make this easy, so you can understand it very well. Understanding Lists So first, we need to understand what exactly a list is in Python. So, in simple terms, we can say it is a way to store multiple values. For example, you can have a list of ... Read More

300 Views
Complex numbers is the combination of both real and imaginary components. Sometimes they are written as a + bi, where - a is the real part or number, b is the imaginary part, i is the imaginary unit which is basically a square root of -1. The imaginary part is written as the letter i. It is basically a square root of -1. Python already has support for complex numbers so it is easy to use them. So in this article, we will explain the basic ideas of complex numbers in Python, like how to create them, ... Read More