Swarnava Bhattacharyya

Swarnava Bhattacharyya

8 Articles Published

Articles by Swarnava Bhattacharyya

8 articles

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 178 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 206 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 294 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
Showing 1–8 of 8 articles
« Prev 1 Next »
Advertisements