Python Articles

Page 167 of 855

How to Adjust Marker Size in Matplotlib?

Atharva Shah
Atharva Shah
Updated on 27-Mar-2026 15K+ Views

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 More

Why is Python used on YouTube?

Swarnava Bhattacharyya
Swarnava Bhattacharyya
Updated on 27-Mar-2026 4K+ Views

Before Google acquired YouTube, most of it was built using PHP. However, PHP at that time had significant limitations for cross-platform applications and generated substantial code clutter. After Google's intervention, YouTube underwent a major overhaul with changes in interface and security architecture. This article explores how Python became integral to YouTube's infrastructure and why it was chosen over other programming languages. YouTube's Language Evolution PHP Era Limited scalability Code clutter ...

Read More

What are some of the common frustrations one faces while learning Python?

Swarnava Bhattacharyya
Swarnava Bhattacharyya
Updated on 27-Mar-2026 182 Views

Python is one of the most popular programming languages for beginners due to its simple syntax and versatility. However, new Python learners often encounter common frustrations that can slow their progress. This article explores these challenges and provides practical solutions to help overcome them. Common Learning Frustrations Finding quality learning resources Understanding and fixing syntax errors Executing external commands through Python Using enumerate() for iteration Working with modules and imports Finding Quality Learning Resources While Python is widely used, finding comprehensive, well−structured learning materials can be challenging. Many resources are fragmented or too advanced ...

Read More

What's the coolest program you've made in Python?

Swarnava Bhattacharyya
Swarnava Bhattacharyya
Updated on 27-Mar-2026 212 Views

Password hashing is a crucial security technique for protecting user credentials. This Python program demonstrates how to hash passwords using different algorithms like MD5, SHA-256, and BLAKE2b for secure storage. What is Password Hashing? Password hashing converts plain text passwords into encrypted strings using mathematical algorithms. Instead of storing actual passwords, systems store these hashed values. When a user logs in, their input is hashed and compared to the stored hash, ensuring passwords remain secure even if data is compromised. Implementation Approach Create functions for different hashing algorithms Get user input for the password string ...

Read More

In the Python dictionary, can one key hold more than one value?

Swarnava Bhattacharyya
Swarnava Bhattacharyya
Updated on 27-Mar-2026 57K+ Views

A Python dictionary stores key-value pairs where each key maps to a single value. However, you can store multiple values for one key by using containers like lists, tuples, or sets as the value. This article explores five practical methods to achieve this. What is a Dictionary in Python? A dictionary is Python's built-in data structure that stores key-value pairs dynamically. It's mutable and can be thought of as an associative array where each element is associated with its key value. Can One Key Hold More Than One Value? Yes! While dictionaries store single values per ...

Read More

How to learn Python without prior programming knowledge?

Swarnava Bhattacharyya
Swarnava Bhattacharyya
Updated on 27-Mar-2026 1K+ Views

Python is one of the most popular programming languages today, with applications spanning computer vision, IoT, machine learning, and data analysis. Python is also one of the easiest languages for beginners due to its simple syntax and readable code structure. Here's a comprehensive guide to learn Python without any prior programming experience. Essential Steps to Learn Python Learning the basics Maintaining consistency Joining peer groups Building projects Teaching others Identifying your field of interest Step 1: Learning the Basics Start with fundamental concepts to build a strong foundation. Focus on basic data types, variables, ...

Read More

How to Get the Sign of an Integer in Python?

Swarnava Bhattacharyya
Swarnava Bhattacharyya
Updated on 27-Mar-2026 16K+ Views

In Python, determining the sign of an integer means finding whether a number is positive (+1), negative (-1), or zero (0). Python offers several approaches to accomplish this task, from simple comparisons to built-in functions. Using Mathematical Comparison with Zero The most straightforward approach uses conditional statements to compare the number with zero − def get_sign(number): if number > 0: return 1 elif number < 0: return -1 ...

Read More

How does a Python interpreter work?

Swarnava Bhattacharyya
Swarnava Bhattacharyya
Updated on 27-Mar-2026 7K+ Views

The Python interpreter works as a computer converter that translates high-level Python code to low-level machine language. Python codes are executed by an interpreter called CPython, which is written in C language and processes instructions line by line. How Python Interpreter Works The Python interpreter follows a systematic approach to execute your code through these essential steps: Lexing − Breaking code into tokens Parsing − Creating Abstract Syntax Tree (AST) Compilation − Generating bytecode Execution − Converting to machine code via PVM Output − Returning results or error messages ...

Read More

How can we update a large Python 2 codebase to Python 3?

Swarnava Bhattacharyya
Swarnava Bhattacharyya
Updated on 27-Mar-2026 303 Views

Python 2 reached end-of-life in 2020, making migration to Python 3 essential for maintaining secure, supported applications. Python 3 offers significant improvements including better performance, enhanced security, and modern language features. Why Migrate to Python 3? Python 3 provides several advantages over Python 2: Active Support − Python 2 is no longer maintained or updated Performance − Python 3 is generally faster and more memory efficient Modern Features − Better Unicode support, type hints, and async programming Security − Regular security updates and patches Migration Strategies There are two main approaches for migrating ...

Read More

Multilingual Google Meet Summarizer and Python Project

Mithilesh Pradhan
Mithilesh Pradhan
Updated on 27-Mar-2026 613 Views

A Multilingual Google Meet Summarizer is a Chrome extension that automatically transcribes and summarizes Google Meet conversations in multiple languages. This tool became especially valuable during remote work periods when effective meeting documentation was crucial for productivity. In this article, we'll explore the project architecture and examine key implementation details using Python for natural language processing and summarization. Project Overview This Chrome extension captures audio from Google Meet sessions, generates transcriptions, and creates summarized versions in various languages. The system combines web technologies with machine learning for intelligent text processing. Technology Stack Frontend − ...

Read More
Showing 1661–1670 of 8,546 articles
« Prev 1 165 166 167 168 169 855 Next »
Advertisements