- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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 10784 Articles for Python
![Prince Yadav](https://www.tutorialspoint.com/assets/profiles/509603/profile/60_901093-1661846059.jpg)
4K+ Views
Python is a versatile and powerful programming language, while Flask is a lightweight web framework that allows us to create web applications quickly. Together, they form a robust combination for developing microservices. In this article, we will guide you through the process of building microservices step by step, providing code snippets and explanations along the way. In this tutorial, we will start by introducing the concept of microservices and their benefits. Then, we will set up a development environment and create a simple Flask application. After that, we will dive into the process of splitting the application into microservices, each ... Read More
![Prince Yadav](https://www.tutorialspoint.com/assets/profiles/509603/profile/60_901093-1661846059.jpg)
500 Views
Python is a powerful programming language known for its simplicity and versatility. While it may not be the first choice for game development, Python offers a wide range of libraries and tools that make it possible to create interactive and immersive games. In this tutorial, we will explore the process of building games using Python, step by step. By the end of this article, you will have a solid foundation to create your own engaging games. In this tutorial, we will cover the following topics: Setting up the development environment Creating the game window and handling user input Implementing ... Read More
![Prince Yadav](https://www.tutorialspoint.com/assets/profiles/509603/profile/60_901093-1661846059.jpg)
133 Views
Multiple file renaming can be a laborious and time−consuming process. However, we can create a Bulk File Rename Tool that automates and simplifies the process with the aid of Python and PyQt. This article will explore the step−by−step process of creating a Bulk File Rename Tool using Python and PyQt. By leveraging the power of Python's file−handling capabilities and the user−friendly PyQt framework, we can develop a tool that allows us to rename multiple files quickly and efficiently. Throughout the article, we will guide you through the development environment setup, the file renaming logic implementation, and the creation of an ... Read More
![Prince Yadav](https://www.tutorialspoint.com/assets/profiles/509603/profile/60_901093-1661846059.jpg)
679 Views
Python is a popular and user−friendly programming language known for its simplicity and readability. It offers a wide range of libraries and frameworks to meet various development needs, including game development. One such powerful tool is Pygame, which enables the creation of engaging games and multimedia applications. In this article, we will explore the process of building a Brick Breaker game using Python and Pygame. Brick Breaker is a beloved classic arcade game where players control a paddle to strategically bounce a ball and break bricks. By following this tutorial, you will gain a solid understanding of game development in ... Read More
![Prince Yadav](https://www.tutorialspoint.com/assets/profiles/509603/profile/60_901093-1661846059.jpg)
128 Views
Python decorators are a fundamental aspect of the language's functionality, offering developers a powerful tool for enhancing code modularity. Decorators allow for the modification or extension of functions, methods, or classes without altering their original source code. By separating concerns and adding functionality dynamically, decorators enable more efficient and maintainable software development. In this article, we will explore the concept of decorators, delve into advanced techniques, and showcase their versatility and usefulness in achieving code modularity. Understanding Python Decorators Functions can be passed as arguments to other functions, assigned to variables, and returned as values in Python because they are ... Read More
![Prince Yadav](https://www.tutorialspoint.com/assets/profiles/509603/profile/60_901093-1661846059.jpg)
3K+ Views
Neural networks have gained immense popularity in artificial intelligence and machine learning due to their ability to handle complex problems. Within this realm, Adaline (Adaptive Linear Neuron) and Madaline (Multiple Adaptive Linear Neuron) have emerged as pivotal players in pattern recognition and classification. These networks, originating in the mid−20th century, have laid the foundation for the remarkable advancements in AI today. This article explores the fundamental concepts, intricate architectures, and efficient learning algorithms that form the basis of Adaline and Madaline networks. By delving into their inner workings, readers can comprehensively understand these networks and discover their potential applications. ... Read More
![Rohan Singh](https://www.tutorialspoint.com/assets/profiles/638564/profile/60_146647-1681360804.jpg)
124 Views
In Python, we can group tuples by kth index element using several methods like using a dictionary, leveraging the groupby() function from itertools, and utilizing the defaultdict from the collection module. Grouping tuples by the kth index is useful when analyzing data and data manipulation. In this article, we will explore different methods to group tuples by their kth index element, using various techniques, and demonstrate their implementation. Method 1: Using a Dictionary One straightforward approach to group tuples is by using a dictionary. The idea is to iterate through the list of tuples and use the kth index element ... Read More
![Rohan Singh](https://www.tutorialspoint.com/assets/profiles/638564/profile/60_146647-1681360804.jpg)
70 Views
Grouping single−item dictionaries into list values can be useful for data aggregation or reformatting. In Python, we can perform this task using various methods like using a loop, using a list comprehension, using the map() function, and using the operator.itemgetter() function. In this article, we will explore different methods to group single−item dictionaries into list values. Method 1: Using a Loop A straightforward approach is to iterate through the single−item dictionaries and append their values to a list. Let’s implement this loop with the help of an example. Syntax list_name.append(element) Here, the append() function is a list method used ... Read More
![Rohan Singh](https://www.tutorialspoint.com/assets/profiles/638564/profile/60_146647-1681360804.jpg)
818 Views
In Python, we can group similar value list to dictionary using methods like using for loop and conditional statement, using defaultdict, and using groupby methods from the itertools module. Grouping them together can be useful when analyzing complex data. In this article, we will understand how we can group similar value list to dictionary using these methods. Method 1: Using a for loop and conditional statements One of the simplest methods to group similar values in a list and convert them into a dictionary is by using a for loop and conditional statements. In this method, we initialize an empty ... Read More
![Rohan Singh](https://www.tutorialspoint.com/assets/profiles/638564/profile/60_146647-1681360804.jpg)
1K+ Views
In Python, similar keys in the dictionary can be grouped using various methods in Python as using defaultdict, using a dictionary of lists, using the itertools module, and the groupby function. During data analysis sometimes we may need to group similar keys together in a dictionary based on certain criteria. In this article, we will explore various methods to group similar keys in dictionaries. Method 1: Using a defaultdict Python's defaultdict class from the collections module provides a convenient way to group similar keys. It automatically initializes a default value when a new key is accessed. Syntax groups = defaultdict(list) ... Read More