
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

252 Views
Arcade is a Python library that is used to create 2D games and applications. It is an easy-to-use library that provides various functionality to create an interface for drawing shapes and images on the screen. In this article, we will use Arcade and draw a Circle in Python3. Installing Arcade Before we can start drawing circles, we need to install the Arcade library. You can install it using pip, the package manager for Python − Pip install arcade Drawing a circle in Arcade Method 1: Using the arcade.draw_circle() method We can use the draw_circle method of the ... Read More

6K+ Views
Turtle is a Python module that is used to create graphics, images, and animation using simple commands. Turtle is a simple and easy tool for beginners to learn programming by creating exciting visuals with it. In this article, we will create a car using a turtle in Python. Step 1: Installing Turtle in Python Before we dive into the code, we need to make sure that the Turtle module is installed in our Python environment. Use the Python package manager to install the Turtle module. To install the turtle module type the following command in your terminal. pip install turtle ... Read More

971 Views
The drag and drop by offset method is performed using the Action chain API in selenium. It is similar to simple drag and drop in addition to creating the functionality using the offset of the object. In this article, we will create the drag and drop by offset functionality using an action chain in Selenium Python. What is the drag and drop by Offset method? The drag and drop by offset method is an action to drag an element from one location to another using its offset position. Action chin provides a method drag_and_drop_by_offset() which takes two arguments- one ... Read More

3K+ Views
Request and BeautifulSoup are Python libraries that can download any file or PDF online. The request library is used to send HTTP requests and receive responses. BeautifulSoup library is used to parse the HTML received in the response and get the downloadable pdf link.In this article, we will understand how we can download PDFs using Request and Beautiful Soup in Python. Installing Dependencies Before using the BeautifulSoup and Request libraries in Python we need to install the libraries in our system using the pip command. To install the request and BeautifulSoup and Request library run the following command in ... Read More

764 Views
XKCD is a popular webcomic that features humor, science, and geek culture. The comic is famous for its witty jokes as well as a reference to culture and science. We can download the comic using XKCD API and Python request and pillow library. In this article, we will download XKCD comics using Python. Understanding XKCD API XKCD provides an open API that gives permission to the developers to access the comics using the API. To use the API, we need to send an HTTP GET request to the URL - `http://xkcd.com/info.0.json`. The request returns a JSON object that contains information ... Read More

13K+ Views
Pytube is a Python library that is used to download any youtube video easily. It offers a simple and intuitive interface, making it easy to use even for those who are not familiar with programming. It provides the option to download a video in various formats like mp4, mp3, 3gp, webm, etc. In this article, we will learn step by step process of how to download the video in mp3 format using Pytube. Install Pytube Before using the Pytube module we need to download the Pytube library in our system by using the Python package manager. To download ... Read More

2K+ Views
The Instagram profile pic can be downloaded using the Beautiful Soup and Request module in Python.Instagram is one of the most popular social media platforms that allows users to share photos and videos with their followers. As an Instagram user, you might come across some interesting profile pictures that you may want to save or download. In this article, we will download Instagram profile pics using Beautiful Soap and the Instaloader library in Python. Method 1: Using Beautiful Soap and Request module In this method, we send a GET request to the User's Instagram profile URL using the request ... Read More

3K+ Views
Google Collab is a free online Platform provided by Google that provides CPU, GPU, and other infrastructure to run complex computation and data analysis. Google Collab provides a jupyter notebook environment to run Python code. We can download anything to google drive using google collab by mounting our google drive on Collab. In this article, we will understand how we can download anything to google drive using google collab. Step 1: Setting up google collab If you have a Google account you can open the google collab website and click on “New Notebook” to create a new Jupyter ... Read More

6K+ Views
Pip is a Python package manager that allows you to easily install, manage and uninstall Python packages. To download and install pip latest version you can do it by downloading the script from the official Python website or by using some commands in your local Command prompt. In this article, we will see the steps to download and install Pip's latest version in Python. Steps to Download and Install Pip Step 1: Check if the pip is already installed Pip might be already installed in your system. You can check if pip is already installed in your system using ... Read More

590 Views
In Python, we download a file over HTTP using Python built-in libraries like urllib, request, and httplib. HTTP is a hypertext transfer protocol and is used to access data over the world wide web.HTTP requests are typically initiated by a client, such as a web browser, and are sent to a server that hosts the requested resource. The request usually includes a method, such as GET or POST, a Uniform Resource Locator (URL) that identifies the resource, and optional headers that provide additional information about the request. In this article, we will understand how to use urllib and request libraries ... Read More