Server Side Programming Articles

Page 133 of 2109

Creating a scrolling background in Pygame

Tamoghna Das
Tamoghna Das
Updated on 27-Mar-2026 2K+ Views

Pygame is a popular Python library used for building games and multimedia applications. One of the most important aspects of game development is the ability to create scrolling backgrounds. In this article, we will cover the essential steps for creating a scrolling background in Pygame with complete working examples. Prerequisites Before creating a scrolling background in Pygame, ensure you have ? Python installed (version 3.6 or higher) Pygame library: pip install pygame Basic understanding of Python programming Familiarity with Pygame basics Basic Scrolling Background Implementation Here's a complete working example of a horizontal ...

Read More

Create a plot with Multiple Glyphs using Python Bokeh

Tamoghna Das
Tamoghna Das
Updated on 27-Mar-2026 397 Views

Bokeh is a powerful data visualization library in Python that helps create interactive visualizations for web browsers. One of Bokeh's key features is the ability to combine multiple glyphs (visual markers like circles, lines, squares) in a single plot to display different data series effectively. What are Glyphs in Bokeh? In Bokeh, glyphs are the visual building blocks used to represent data points. Common glyphs include circles, lines, squares, triangles, and bars. Each glyph type serves different visualization purposes: Circles − Best for scatter plots and point data Lines − Ideal for time series and continuous ...

Read More

Creating a simple Range Slider in Bokeh

Tamoghna Das
Tamoghna Das
Updated on 27-Mar-2026 1K+ Views

Bokeh is a powerful data visualization library in Python that helps create interactive and unique visualizations for the web. A RangeSlider widget allows users to select a range of values interactively, making it useful for filtering data or controlling plot parameters. This tutorial will guide you through creating a simple range slider in Bokeh. Key Benefits of Range Slider Interactive − RangeSlider provides an interactive way for users to adjust the range of a plot, which can be particularly useful for exploring data and identifying trends. Range control − The RangeSlider allows users to control the range ...

Read More

Create a Pandas DataFrame from lists

Tamoghna Das
Tamoghna Das
Updated on 27-Mar-2026 3K+ Views

A Pandas DataFrame is a two-dimensional table-like data structure with labeled rows and columns. Creating DataFrames from lists is one of the most fundamental operations in pandas, allowing you to transform Python lists into structured data for analysis. This article demonstrates various methods to create pandas DataFrames from lists with practical examples. Basic DataFrame Creation from a Single List The simplest way to create a DataFrame is from a single list − import pandas as pd names = ['Alice', 'Bob', 'Charlie', 'Diana'] df = pd.DataFrame(names, columns=['Name']) print(df) ...

Read More

Create a GUI to extract information from VIN number Using Python

Tamoghna Das
Tamoghna Das
Updated on 27-Mar-2026 876 Views

A Vehicle Identification Number (VIN) is a unique 17-digit code assigned to every vehicle manufactured after 1981. It contains information about the vehicle's make, model, year of manufacture, country of origin, and other relevant details. In this tutorial, we will create a Graphical User Interface (GUI) using Python's Tkinter library to extract and display vehicle information from a VIN number. Prerequisites Before creating the GUI, you should have basic understanding of: Python programming fundamentals Tkinter module for GUI development Making HTTP requests with the requests library Python 3.x installed on your system Required Libraries ...

Read More

Python Program To Detect A Loop In A Linked List

Kavya Elemati
Kavya Elemati
Updated on 27-Mar-2026 1K+ Views

A linked list is said to have a loop when any node in the linked list is not pointing to NULL. The last node will be pointing to one of the previous nodes in the linked list, thus creating a loop. There will not be an end in a linked list that has a loop. In the below example, the last node (node 5) is not pointing to NULL. Instead, it is pointing to node 3 and a loop is established. Hence, there is no end to the above linked list. ...

Read More

Python Program To Convert An Array List Into A String And Viceversa

Kavya Elemati
Kavya Elemati
Updated on 27-Mar-2026 329 Views

Python provides several methods to convert between lists and strings. The most common approaches are using join() to convert lists to strings and split() to convert strings back to lists. Converting a List to String Using Loop You can iterate through all items in a list and concatenate them into a string ? words = ["I", "want", "cheese", "cake"] result = "" for item in words: result = result + item + " " print(result.strip()) # Remove trailing space I want cheese cake Using join() Function ...

Read More

Python Program To Get The Middle Element Of A Linked List In A Single Iteration

Kavya Elemati
Kavya Elemati
Updated on 27-Mar-2026 2K+ Views

A linked list stores data in non-contiguous memory locations using nodes connected by pointers. Each node contains data and a link to the next node. Finding the middle element efficiently requires the two-pointer technique to avoid multiple iterations. Brute Force Approach The brute force method requires two passes through the linked list ? First pass: Count total nodes to find length Second pass: Traverse to the middle position (length/2) Time complexity: O(n), but requires two iterations Two-Pointer Technique (Single Iteration) This optimal approach uses slow and fast pointers moving at different speeds ? ...

Read More

Python Program To Add Elements To A Linked List

Kavya Elemati
Kavya Elemati
Updated on 27-Mar-2026 1K+ Views

A linked list is a linear data structure where elements are stored in nodes, and each node contains data and a reference to the next node. Unlike arrays, linked list elements are not stored in contiguous memory locations, making insertion and deletion operations more efficient. In Python, we can implement a linked list using classes. Each node contains data and a pointer to the next node. The first node is called the head, and the last node points to None. Linked List Structure Every node in a linked list contains ? Data − The actual ...

Read More

Python Program to get first and last element from a Dictionary

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

Python dictionaries are ordered collections (as of Python 3.7+) that store data as key-value pairs. When working with dictionaries, you might need to access the first and last elements. This article demonstrates multiple methods to retrieve these elements efficiently. Dictionary Basics A dictionary is a collection of items that are unique, changeable, and ordered. Since Python 3.7, dictionaries maintain insertion order, meaning items retain the order in which they were added. # Example dictionary student_data = {'Name': 'Akash', 'Roll': '3', 'Subject': 'Bio'} print(student_data) {'Name': 'Akash', 'Roll': '3', 'Subject': 'Bio'} Using list() ...

Read More
Showing 1321–1330 of 21,090 articles
« Prev 1 131 132 133 134 135 2109 Next »
Advertisements