Server Side Programming Articles

Page 135 of 2109

Python Program to Split a List into Two Halves

Utkarsha Nathani
Utkarsha Nathani
Updated on 27-Mar-2026 7K+ Views

In Python, lists are one of the most versatile data structures for storing collections of items. Sometimes you need to split a list into two equal or nearly equal parts for processing, analysis, or other operations. What is a List? Lists in Python are created using square brackets and can contain multiple data types including integers, strings, and objects. Since lists are mutable, you can modify them after creation, making them highly flexible for data manipulation. In this article, we will explore methods for dividing a list into two halves using Python programming. These techniques will help ...

Read More

Python Program to Get Minimum and Maximum from a List

Utkarsha Nathani
Utkarsha Nathani
Updated on 27-Mar-2026 11K+ Views

Python lists are mutable, ordered collections that can store multiple elements. Finding the minimum and maximum values from a list is a common operation with several approaches available. Finding Minimum Value from List Using min() Function The min() function returns the smallest element from a list or any iterable. It works with both numbers and strings ? numbers = [15, 58, 30, 97] minimum = min(numbers) print("The smallest element is:", minimum) The smallest element is: 15 For strings, min() returns the lexicographically smallest value ? names = ["alina", ...

Read More

How to Create a Pivot Table in Python using Pandas?

Mukul Latiyan
Mukul Latiyan
Updated on 27-Mar-2026 4K+ Views

A pivot table is a powerful data analysis tool that allows you to summarize and aggregate data based on different dimensions. In Python, you can create pivot tables using the pandas library, which provides flexible and efficient tools for data manipulation and analysis. To create a pivot table in pandas, you first need to have a dataset in a pandas DataFrame. You can load data into a DataFrame from various sources such as CSV files, Excel spreadsheets, SQL databases, and more. Syntax Once you have your data in a DataFrame, you can use the pandas pivot_table() function ...

Read More

How to create a meeting with the zoom API in Python?

Mukul Latiyan
Mukul Latiyan
Updated on 27-Mar-2026 3K+ Views

Zoom is a video conferencing platform that provides an API for developers to programmatically interact with its features. Python offers a simple way to create Zoom meetings through API calls using the requests library and JWT authentication. This guide demonstrates how to create a Zoom meeting using Python and the Zoom API. You can automate meeting creation and integrate it with other applications or workflows. Prerequisites and Setup To use the Zoom API, you must first create a Zoom app by following these steps: Go to https://marketplace.zoom.us/ and sign in to your Zoom account. Click ...

Read More

How to create a matrix of random integers in Python?

Mukul Latiyan
Mukul Latiyan
Updated on 27-Mar-2026 10K+ Views

In Python, you can create a matrix of random integers using the NumPy library. NumPy is a powerful library for scientific computing that provides support for multidimensional arrays and random number generation. To create a matrix of random integers, you use the numpy.random.randint() function. This function generates random integers within a specified range and returns a NumPy array of the specified shape. Syntax numpy.random.randint(low, high=None, size=None, dtype='l') Parameters low − The lowest (inclusive) integer to be generated in the matrix. high − The highest (exclusive) integer ...

Read More

How to create a Cumulative Histogram in Plotly?

Mukul Latiyan
Mukul Latiyan
Updated on 27-Mar-2026 2K+ Views

A cumulative histogram is a type of histogram that shows the cumulative distribution function (CDF) of a dataset. The CDF represents the probability that a random observation from the dataset will be less than or equal to a certain value. Cumulative histograms are useful when you want to compare the distribution of two or more datasets or when you want to visualize the proportion of data points that fall below a certain threshold. Plotly is a Python library for creating interactive and publication-quality visualizations. It is built on top of the D3.js visualization library and provides a wide range ...

Read More

How to Create a Correlation Matrix using Pandas?

Mukul Latiyan
Mukul Latiyan
Updated on 27-Mar-2026 2K+ Views

Correlation analysis is a crucial technique in data analysis, helping to identify relationships between variables in a dataset. A correlation matrix is a table showing the correlation coefficients between variables in a dataset. It is a powerful tool that provides valuable insights into the underlying patterns in the data and is widely used in many fields, including finance, economics, social sciences, and engineering. In this tutorial, we will explore how to create a correlation matrix using Pandas, a popular data manipulation library in Python. What is a Correlation Matrix? A correlation matrix displays pairwise correlations between variables. ...

Read More

How to create a bar chart and save in pptx using Python?

Mukul Latiyan
Mukul Latiyan
Updated on 27-Mar-2026 2K+ Views

Data visualization is an essential part of data analysis and communication, and Python offers many tools and libraries to create visually appealing and informative charts. Two such libraries are Plotly and python-pptx. Plotly is a powerful library for creating interactive charts, including bar charts, while python-pptx is a library for working with PowerPoint presentations programmatically. Creating a bar chart using Plotly is straightforward — you can specify the data, chart type, and layout, and Plotly will generate a high-quality chart that can be easily customized. Once created, you can save it as an image file and embed it into ...

Read More

How to Package and Deploy CLI Applications With Python

Harshit Sachan
Harshit Sachan
Updated on 27-Mar-2026 4K+ Views

Based on the interface we have two types of applications: CLI (Command Line Interface) applications and GUI (Graphical User Interface) applications. A command line application or console application is one which can be accessed from a shell or command line through a text interface. These accept inputs from the user in text format, unlike GUI applications which provide a graphical interface containing buttons, text boxes and icons. Python is a popular programming language for developing CLI applications. Let's explore the complete process of packaging and deploying CLI applications with Python using built-in and external tools. Step 1: ...

Read More

Command Line File Downloader in Python

Harshit Sachan
Harshit Sachan
Updated on 27-Mar-2026 855 Views

Python provides powerful libraries for creating command line applications. A command line file downloader allows you to download files from the internet directly through your terminal without using a browser. This tutorial shows how to build a simple file downloader using Python's requests and argparse libraries. The application accepts a URL and filename as command line arguments and downloads the file to your local system. Required Libraries We need two Python libraries for this project: requests − For making HTTP requests to download files argparse − For handling command line arguments Install the ...

Read More
Showing 1341–1350 of 21,090 articles
« Prev 1 133 134 135 136 137 2109 Next »
Advertisements