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
Programming Articles - Page 300 of 3363
400 Views
Cython is a programming language that is a superset of Python and can be compiled into C code for improved performance. Cython is developed to improve the execution speed and make the code faster compared to Python. In this article, we will look at some interesting facts about Cython Programming Language. Cython can be used to speed up Python code As the name suggests Cython is Python-like code that can be converted to C code for faster and improved execution speed. Developers can write code in Python which is then compiled into C code and makes the language much faster. ... Read More
6K+ Views
In Python, we can extract the real and imaginary parts of a NumPy array of the complex number using the real and imag attributes of the array, respectively. Numpy is a Python library that is used for complex calculations and also provides support for complex numbers. In this article, we will understand how we can extract the real and imaginary parts separately of a complex number. Understanding Complex Number in Numpy In Numpy we represent a complex number as a combination of the real and imaginary parts using the complex data type. We can create a complex number in ... Read More
3K+ Views
In Python, we can extract location from text using NLP libraries available in Python such as NLTK, spaCy, and TextBlob.Extracting location from text is used in various Natural language processing tasks such as sentiment analysis, information retrieval, and social media analysis. In this article, we will discuss how we can extract location from text using the spaCY library. Prerequisites Installing spaCY library Before using the scpaCy library for the extraction process you need to install the spaCy library using pip command in Python. To extract the spaCy library you can type the following command in your terminal or ... Read More
9K+ Views
To extract an attribute value with the help of Beautiful Soup we need to parse the HTML document and then extract the required attribute value. Beautiful Soup is a Python library that is used to parse HTML and XML documents.BeautifulSoup provides several methods to search and navigate the parse tree, making it easy to extract data from the documents. In this article, we will extract attribute values with the help of Beautiful Soup in Python. Algorithm You can follow the below-given algorithm to extract attribute values with beautiful soup in Python. Parse the HTML document using the BeautifulSoup ... Read More
5K+ Views
In Python, we can extract the title from a webpage using Web scraping. Web scraping is the process of extracting data from a website or webpage. In this article, we will scrap the title of a webpage using the Requests and BeautifulSoup libraries in Python. Extracting Title from Webpage Method 1: Using Request and Beautiful Soup libraries We can use the request and Beautiful Soup libraries of Python to extract titles from a webpage. The requests library is used to send HTTP requests to a website and get its response. We then use the response object to extract the HTML ... Read More
331 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
1K+ 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
813 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