Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Atharva Shah
Page 6 of 6
Ethical Hacking with Python
Python is an increasingly popular programming language for Ethical Hacking, especially in today's digital world, where security is paramount. With the rise of cybercrime, it's essential to take proactive measures to safeguard our online assets. Ethical Hacking is a critical step in this process, involving the identification and resolution of system vulnerabilities before they can be exploited by malicious hackers. This article will explore how Python is used for Ethical Hacking, including its advantages and best practices. Basics of Ethical Hacking Hacking is broadly classified into three types − Black Hat Hacking, White Hat Hacking, and Grey Hat ...
Read MoreHow to apply different titles for each different subplots using Plotly in Python?
Subplot creation is one of several tools for data visualization provided by the Python library Plotly. A big narrative can be broken up into multiple smaller ones using subplots. Sometimes, in order to give the main story greater depth and consistency, it may be essential to give each subplot its own title. Syntax Customizing subplot titles in plot grids is made possible through the usage of the subplot_titles parameter, which enables us to create unique titles for each plot. The make_subplots() function is essentially a factory method that allows us to establish a plot grid with a designated ...
Read MoreHow to Annotate Matplotlib Scatter Plots?
Scatter plots effectively visualize relationships between two continuous variables, revealing patterns, trends, and outliers. Adding annotations to specific points makes these visualizations more informative and easier to interpret. This article demonstrates how to annotate Matplotlib scatter plots using the annotate() method. Syntax ax.annotate(text, xy, xytext=None, arrowprops=None, **kwargs) Parameters text − Text to be displayed in the annotation. xy − (x, y) coordinates of the point to annotate. xytext − (x, y) coordinates of the text annotation. If None (default), xy is used as the text location. arrowprops − A dictionary of arrow properties. ...
Read MoreHow to animate an object using the Arcade module?
Python's Arcade module is a powerful library for creating 2D games and animations. It provides simple, object-oriented tools for building interactive animations with smooth graphics and easy-to-understand code structure. Installing Arcade Before creating animations, you need to install the Arcade module using pip ? pip install arcade Key Features of Arcade Arcade offers several advantages for animation projects ? Sprite Management − Built-in classes for handling animated objects with collision detection Drawing Functions − Simple methods like draw_circle, draw_line, and draw_rectangle Object-Oriented Design − Clean class structure for organizing game logic ...
Read MoreHow to Adjust the Number of Ticks in Seaborn Plots?
Ticks are markers that represent data point positions on plot axes in Matplotlib and Seaborn. They help identify specific values and make plots more readable. Seaborn provides methods to customize tick locations and labels for better data visualization. Basic Syntax To adjust ticks in Seaborn plots, use these axis methods ? # Set x-axis tick locations and labels ax.set_xticks([tick1, tick2, ...]) ax.set_xticklabels([label1, label2, ...]) # Set y-axis tick locations and labels ax.set_yticks([tick1, tick2, ...]) ax.set_yticklabels([label1, label2, ...]) Here, ax is the axis object returned by Seaborn plot functions. The methods accept lists of ...
Read MoreHow to Adjust Marker Size in Matplotlib?
In a plot, a marker is a symbol that designates a single data point. Size, color, and shape are just a few of the attributes that may be changed. Markers are commonly used in conjunction with other charting methods to enhance the readability and comprehension of data. With Matplotlib, a wide variety of marker shapes are provided, including circles, squares, triangles, diamonds, and more. It is possible to alter the marker size to draw attention to crucial details or to develop more aesthetically pleasing plots. We'll show you how to alter the marker size in Matplotlib using examples of ...
Read MoreFind the tag with a given attribute value in an HTML document using BeautifulSoup
Extracting data from HTML pages is a typical activity during web scraping. Many tags and attributes found in HTML pages aid in locating and extracting relevant data. BeautifulSoup is a well-known Python library that can be used to parse HTML documents and extract useful information. In this tutorial, we'll focus on using BeautifulSoup to locate a tag that has a specific attribute value. Installation and Setup To get started, we must install BeautifulSoup. Pip, Python's package installer, can be used for this. Enter the following command in a command prompt or terminal − pip install beautifulsoup4 ...
Read MoreFinding the k smallest values of a NumPy array
Finding the k smallest values of a NumPy arra Installation and Syntax Pip, Python's package installer, is often used to install NumPy. pip install numpy The following function may be used to identify the k NumPy array elements with the smallest values − np.sort(array)[:k] This returns the first k items of the sorted array after sorting it in ascending order. The array may be be sorted using the alternative syntax shown below, which will retrieve the last k entries and sort the array in descending order − np.sort(array)[::-1][:k] Algorithm The algorithm for finding the k smallest ...
Read MoreFind the sum and product of a NumPy array elements
A Python package called NumPy is employed in scientific computing and to handle large-scale numerical data. It provides support for multi-dimensional arrays and matrices, as well as a large library of mathematical functions to manipulate them. In this tutorial, we will focus on two of the most commonly used NumPy functions: sum() and prod(). These functions are used to calculate the sum and product of all the elements in a NumPy array, respectively. Installation Get the numpy package installed using pip inside your terminal pip install numpy Import it as highlighted after successful installation − import numpy as np ...
Read MoreDifferences Between Django vs Flask
This article contrasts these two web frameworks (Django and Flask), highlighting their similarities and differences as well as their features, benefits, and drawbacks, in order to assist you in selecting a paradigm for your project. Choosing the ideal web framework for your project as a software engineer or developer can be difficult because there are a lot of options like Django, Flask Pyramid, etc. Brief overview of Django and Flask Both the Django and Flask Python web frameworks have a sizable user base. With an integrated ORM, templates, and admin interface, Django is a high-level, full-stack web framework. On the ...
Read More