
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 10476 Articles for Python

3K+ Views
In Python, saving files with user−defined file names is a common requirement in various applications and projects. By allowing users to specify the file name, we can provide them with a more personalized and customizable experience. This article will explain the process of saving files with file names provided by the user, using Python. Algorithm A general algorithm for saving file with file name from user is as follows: Prompt the user to enter the desired file name. ... Read More

4K+ Views
Online apps are growing more and more common and are now a necessary part of our daily life. Form submission is one of the essential components of online applications. The standard procedure when completing a form on a web page is to click the submit button, which delivers the information to the server for processing and yet, consumers may see this as sluggish and difficult. This blog article will examine how to quickly and effectively submit forms in Flask without having to reload the page, improving user experience. Installation and Syntax Before we delve into the details of how to ... Read More

322 Views
Because of its notoriety and lightweight plan, Flaskis a Python web application structure that is regularly used to make online applications. It provides programmers with the resources they require to develop web applications with less redundant code. The Flask server, which is utilized to execute web applications while they are being created, will be shrouded in this illustration. Installation Pip may be used to install the necessary Python package named Flask before we start. pip install Flask Flask Server, Its Uses and Application Structure A Python micro web framework called Flask makes it simple and quick for programmers to ... Read More

205 Views
Since they provide job stability, respectable pay, and several other advantages, government jobs are in high demand worldwide. Finding and managing these notifications, though, may be a difficult process. This article will teach you how to scrape the web for the most recent government employment announcements using Python. Installation and Syntax Before we begin, we need to install the required Python packages. The two packages we will use are requests and BeautifulSoup. We can install these packages using pip. Here's the command to install them: pip install requests pip install beautifulsoup4 Once we have installed the required packages, ... Read More

2K+ Views
Data analysis frequently faces the issue of working with enormous datasets, which frequently necessitates data modification to yield valuable insights. The ability to extract the most recent n entries from a Pandas DataFrame might be helpful in certain circumstances. The goal of this article is to offer a thorough how-to manual for successfully doing this activity. Installation and Syntax pip install pandas Once Pandas is installed, you can use a CSV file or the results of a database query to create a DataFrame from a variety of data sources. import pandas as pd data = {'Name': ['John', 'Mark', 'Alice', ... Read More

9K+ Views
Async functions, also known as coroutines, are functions that can be paused and resumed during their execution. In Python, the asyncio module, provides a powerful framework for writing concurrent code using coroutines, which are special functions that can be paused and resumed. In this article, we will explore how to run two async functions forever using asyncio in Python. Async Functions Async functions, also known as coroutines, are functions that can be paused and resumed during their execution. They allow for concurrent execution of code without blocking the main thread, thus enabling efficient utilization of system resources. To define an ... Read More

1K+ Views
YouTube, the world's largest video-sharing website, hosts a wide variety of media. Individuals or groups can create channels on YouTube, and recordings can be uploaded for others to view. Using Python, we will use the Google API in this tutorial to learn more about a YouTube channel. Installation pip install --upgrade google-api-python-client Navigate to https://console.cloud.google.com/ to access the Google Cloud Console. Choose an existing project or start a new one. On the left-hand menu, pick APIs & Services > Dashboard by clicking the "Navigation menu" symbol . Choose "+ ENABLE APIS AND SERVICES" from the menu.In the ... Read More

332 Views
Web scraping is only one of the many uses for the flexible programming language Python. We'll discover how to use Python to extract station codes for Indian Railways in this blog post. Each Indian railway station has a specific identification number, or station code. They are used to make reservations for tickets, look at train timetables, and find other relevant data. Installation To start with, we need to install the requests and Beautiful Soup libraries. Requests is a Python library used for sending HTTP requests, while Beautiful Soup is a library used for web scraping purposes. To install requests, open ... Read More

4K+ Views
Django Rest framework is a toolkit that is used to build APIs in Django. It provides features and functionalities to handle HTTP requests and responses in Python. Django Rest framework uses Serializers and Response classes to return custom JSON data. In this article, we will explore different approaches to return custom JSON in Django REST Framework, along with examples. Serializers and Response Class Django Rest Framework(DRF) uses serializers to convert complex data types, such as Django models, into JSON, XML, or other content types that can be easily rendered into HTTP responses. To return custom JSON, you can create ... Read More

2K+ Views
Lists are a common data structure in Python for storing a collection of objects. On occasion, you might need to locate the index of a certain item in the list using the value of a particular characteristic. This can be a difficult process, particularly if the list has a lot of things but Python has a simple method for obtaining the index in the list of objects by attribute which we will be exploring in this article. Syntax To find the index in the list of objects according to an attribute, use the syntax shown below − index = next((i ... Read More