• Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer

Computer Notes

Library
    • Computer Fundamental
    • Computer Memory
    • DBMS Tutorial
    • Operating System
    • Computer Networking
    • C Programming
    • C++ Programming
    • Java Programming
    • C# Programming
    • SQL Tutorial
    • Management Tutorial
    • Computer Graphics
    • Compiler Design
    • Style Sheet
    • JavaScript Tutorial
    • Html Tutorial
    • Wordpress Tutorial
    • Python Tutorial
    • PHP Tutorial
    • JSP Tutorial
    • AngularJS Tutorial
    • Data Structures
    • E Commerce Tutorial
    • Visual Basic
    • Structs2 Tutorial
    • Digital Electronics
    • Internet Terms
    • Servlet Tutorial
    • Software Engineering
    • Interviews Questions
    • Basic Terms
    • Troubleshooting
Menu

Header Right

Home » Python » Python

Regular Expression in Python

By Dinesh Thakur

In this tutorial we are going to talk about regular expressions and their implementation or usage in the Python programming language.

What is RegEx?

Regular expressions in Python also write in short as RegEx, or you can also pronounce it as regX. In simple words, a regular expression is a sequence of characters that define the search pattern. We know that a sequence of characters is simply a string. A string that acts as a pattern for searching something in any given text can term as a regular expression. [Read more…] about Regular Expression in Python

Python File I/O: Read and Write to Files in Python

By Dinesh Thakur

In this tutorial, we will explore the print() function in detail in the Python Programming Language Standard Library. There are many built-In functions that you can use for various purposes.

One of these functions is a print() function. Those of the print() function is that it takes any data and the printed on the screen or any output device. We will take a simple example to show how to use the print() function to print a string data type on the screen. [Read more…] about Python File I/O: Read and Write to Files in Python

Functions in Python

By Dinesh Thakur

A function in python is a group of statements within a program that performs a specific task. Usually functions input data, process it, and “return” a result. Once a function is written, it can be used repeatedly.

Types of Functions

Functions can be of two types one is a built-in function, and other is a user-defined function. [Read more…] about Functions in Python

Dictionary in Python

By Dinesh Thakur

In this tutorial, I’m going to show you how to use dictionaries in Python. How to build, view, add, delete elements from them and different built-in techniques.

What are Dictionaries in Python

Dictionary in Python are like associative lists or a map. Now you can think of a dictionary as a list of key:value pairs. A dictionary is an unordered, changeable collection which does not allow duplicates. Let me show you how to define a dictionary. [Read more…] about Dictionary in Python

Sets in Python

By Dinesh Thakur

In this tutorial, we are going to learn how to use sets in Python. how sets are created, how they’re elements are updated, and all operations that can be performed on sets.

What is sets in python

A set is an unordered collection with no duplicate elements, no indexing and must be immutable (cannot be changed). [Read more…] about Sets in Python

Tuples in Python

By Dinesh Thakur

In this Tutorial we are going to see how to use tuples in Python. Tuples are the most versatile, useful data types in Python. In almost any non-trivial Python program, you will discover them.

What are tuples in python

The tuples in python are very similar to lists. The tuple is an orderly and unchangeable collection. Allow duplicate members. It used to store the collection of elements in a single variable. Still, there is a significant difference between them, and that difference is tuples are immutable. Once tuples created, the content in the tuple cannot be changed. [Read more…] about Tuples in Python

Multithreading in Python

By Dinesh Thakur

You can use multiprocessing and multi-threading through the python programming language. In this tutorial, you learn how to write multithreading applications in Python.

What is Multitasking in Python?

In general, Multitasking can be defined as “performing multiple tasks of one process at one time.“. In technical terms, Multitasking refers to an operating system’s ability to perform several different tasks simultaneously. For example, you’re installing something on your PC, such as game, and you’re concurrently playing a music. The same OS does both these tasks, and activities are executed in sync. It is nothing but Multitasking and aims to save time in addition to increasing productivity. [Read more…] about Multithreading in Python

Binary Search in Python

By Dinesh Thakur

This guide will teach how to implement a binary search algorithm in Python while looking for a particular number in a list.

What is Binary search in Python

A Binary Search in Python is a technique for finding a specific element in a sorted list. The algorithm operates by recursively splitting sublists until they can be searched to the desired value. When scanning massive arrays, a binary search is much more effective than a linear search. Specifically, the binary search runs at a logarithmic time in the worst case, O(log n), while linear search runs at linear time O(n) in the worst case. We will concentrate on how to write a binary search algorithm in Python. [Read more…] about Binary Search in Python

Linear Search in Python

By Dinesh Thakur

In this tutorial, we will learn the linear search in Python. we will write a code to search an element from a list. It compares each element to the criterion that we are finding. If all tiles are there, the element is located, and the algorithm returns the key’s index location. [Read more…] about Linear Search in Python

Selection Sort in Python

By Dinesh Thakur

In this tutorial, we’ll talk about selection sort, but what’s wrong with bubble sort in python. The problem is in every iteration, first of all, we do multiple iterations because we have to make sure that you get assorted values, and at one point, you swap two values. The thing is, in each iteration, you do multiple swapping, so there’s nothing wrong in traversing from start to end. But swapping consumes the processing power, so we don’t want to do that. We don’t want to consume our CPU power and memory to do that, so swapping should be done only once, and that’s where selection sort comes into the picture. [Read more…] about Selection Sort in Python

Bubble sort in Python

By Dinesh Thakur

In this tutorial, we will try to sort a list using a sorting technique, which is bubble sort, sometimes referred to as sinking sort, there are different sorting techniques available, but bubble sort works well and is the easiest one.

The figure below illustrates the working of bubble sort algorithm: [Read more…] about Bubble sort in Python

Exception Handling in Python

By Dinesh Thakur

In this tutorial, you’ll learn how to define, raise, catch and exception handling in python – with a few examples.

Exceptions Handling in Python

In Python, different errors may occur while executing a code due to incorrect input or even other unpredictable errors. Where the program encounters an error and something goes wrong with the program, the Python interpreter interrupts the current process and moves it over to the calling process – before it handles. [Read more…] about Exception Handling in Python

map() Function in Python

By Dinesh Thakur

Python’s map() is a built-in function that executes a specified function on all the elements of an iterator and returns a map object (an iterator) for retrieving the results. The elements are sent to the function as a parameter. An iterator, for example, can be a list, a tuple, a string, etc., and it returns an iterable map object. [Read more…] about map() Function in Python

Lambda Function in Python

By Dinesh Thakur

In this tutorial, You can read about the anonymous function, also known as lambda functions. You can understand what they are, how to use them, and their syntax (with examples). [Read more…] about Lambda Function in Python

Switch Case in Python

By Dinesh Thakur

The Switch-Case statement is an important decision-making programming feature that is widely used in modular programming, enabling you to execute different blocks of code based on a variable value during runtime. Unlike many other languages, Python does not directly support switch or a case statement. [Read more…] about Switch Case in Python

OOPS Concepts in Python

By Dinesh Thakur

Python is a object-oriented programming language. Any object-oriented programming language’s key concepts include classes, objects, data hiding, encapsulation, abstraction, polymorphism, and inheritance. [Read more…] about OOPS Concepts in Python

Factorial Program in Python

By Dinesh Thakur

The factorial of a non-negative integer n, denoted by n! is the product of all the integers less than or equal to that number. [Read more…] about Factorial Program in Python

Linked list in Python

By Dinesh Thakur

Python is an open-source language and does not have a built-in linked list in its standard library, and it is possible to get a linked list in python using a particular implementation. In this article, we’ll learn how to build a linked list in Python. [Read more…] about Linked list in Python

String Functions in Python

By Dinesh Thakur

String functions in Python are used to modify information with a string or query. Python has a string data type that has several string functions that handle strings directly. [Read more…] about String Functions in Python

Python String rstrip() Method

By Dinesh Thakur

The method rstrip() returns a copy of the string in which all chars have been stripped from the end of the string (default whitespace characters).
[Read more…] about Python String rstrip() Method

Python String lstrip() Method

By Dinesh Thakur

The method lstrip() returns a copy of the string in which all chars have been stripped from the beginning of the string (default whitespace characters). [Read more…] about Python String lstrip() Method

Python String capitalize() Method

By Dinesh Thakur

In Python, String capitalize() is an inbuilt function that returns a string copy with only its first character capitalized. If the string contains the first capital letter, the original string would be restored. [Read more…] about Python String capitalize() Method

Python String lower() Method

By Dinesh Thakur

In Python, lower() is a built-in method that returns the lowercased string from the given string. It transforms the characters in the upper case into lowercase.
If there are no uppercase characters, it returns the original string. Symbols and Numbers are ignored. [Read more…] about Python String lower() Method

Python String upper() Method

By Dinesh Thakur

Python String upper() function transforms all lowercase characters into uppercase and returns an uppercase string. Strings are immutable, so the original string value remains unchanged.
[Read more…] about Python String upper() Method

Python String swapcase() Method

By Dinesh Thakur

For this method, no external module needs to import. Wherever you want to modify a string’s character cases, call it. Let’s have a look at the swapcase() definition:

The Python String swapcase() function transforms the case of uppercase string characters to lowercase and vice versa. There is no parameter needed, and a string returns after case conversion. [Read more…] about Python String swapcase() Method

Python String title() Method

By Dinesh Thakur

The python string title() method returns a copy of the string in which first characters of all the words are capitalized. [Read more…] about Python String title() Method

Python String count() Method

By Dinesh Thakur

The count() function returns the number of substring occurrences in the [start, end] range. Three parameters are required: a substring, the second start index, and the third is the last index in the range. Both start and end are optional, while substring is necessary.
[Read more…] about Python String count() Method

Python String endswith() Method

By Dinesh Thakur

The Python endswith() method returns True if the string ends with the specified suffix, otherwise False.
[Read more…] about Python String endswith() Method

Python String startswith() Method

By Dinesh Thakur

Python startswith() method returns True if the string starts with the specified prefix, otherwise False. Two parameters start, and the end is needed. The start is a starting index from which the index begins, and the end index is where searching stops.
[Read more…] about Python String startswith() Method

Python String islower() Method

By Dinesh Thakur

Python islower() is one of the Python String Method returns True if all string characters are in lowercase. It returns False if not in lowercase. [Read more…] about Python String islower() Method

Next Page »

Primary Sidebar

Python

Python Tutorials

  • Python - Home
  • Python - Features
  • Python - Installation
  • Python - Hello World
  • Python - Operators Types
  • Python - Data Types
  • Python - Variable Type
  • Python - Switch Case
  • Python - Line Structure
  • Python - String Variables
  • Python - Condition Statement
  • Python - if else Statement
  • Python - for-loop
  • Python - while loop
  • Python - Command Line
  • Python - Regular Expression

Python Collections Data Types

  • Python - List
  • Python - Sets
  • Python - Tuples
  • Python - Dictionary

Python Functions

  • Python - Functions
  • Python - String Functions
  • Python - Lambda Function
  • Python - map() Function

Python Object Oriented

  • Python - Oops Concepts
  • Python - File Handling
  • Python - Exception Handling
  • Python - Multithreading
  • Python - File I/O

Python Data Structure

  • Python - Linked List
  • Python - Bubble Sort
  • Python - Selection Sort
  • Python - Linear Search
  • Python - Binary Search

Python Programs

  • Python - Armstrong Number
  • Python - Leap Year Program
  • Python - Fibonacci Series
  • Python - Factorial Program

Other Links

  • Python - PDF Version

Footer

Basic Course

  • Computer Fundamental
  • Computer Networking
  • Operating System
  • Database System
  • Computer Graphics
  • Management System
  • Software Engineering
  • Digital Electronics
  • Electronic Commerce
  • Compiler Design
  • Troubleshooting

Programming

  • Java Programming
  • Structured Query (SQL)
  • C Programming
  • C++ Programming
  • Visual Basic
  • Data Structures
  • Struts 2
  • Java Servlet
  • C# Programming
  • Basic Terms
  • Interviews

World Wide Web

  • Internet
  • Java Script
  • HTML Language
  • Cascading Style Sheet
  • Java Server Pages
  • Wordpress
  • PHP
  • Python Tutorial
  • AngularJS
  • Troubleshooting

 About Us |  Contact Us |  FAQ

Dinesh Thakur is a Technology Columinist and founder of Computer Notes.

Copyright © 2025. All Rights Reserved.

APPLY FOR ONLINE JOB IN BIGGEST CRYPTO COMPANIES
APPLY NOW