Found 26504 Articles for Server Side Programming

Golang program to add items into the hash collection

Akhil Sharma
Updated on 27-Mar-2023 09:52:12

257 Views

In Golang, we can use a simple indexing method and slicing method to add items to the hash collections. A hash function is used for retrieving and storing the data. In this article are going to see two different examples where we are going to use the above-mentioned methods to add items to a hash collection in go programming language. Syntax func make ([] type, size, capacity) The make function in go language is used to create an array/map it accepts the type of variable to be created, its size and capacity as arguments. Algorithm Import the required ... Read More

Why is Python used on YouTube?

Swarnava Bhattacharyya
Updated on 24-Mar-2023 14:26:22

4K+ Views

IntroductionBefore Google acquired Youtube, most of it was built using PHP. However, PHP at that time had a lot of restrictions for cross-platform applications, and generated a lot of clutter.  After Google’s intervention, Youtube underwent an overhaul, with a major change in interface and security. In this article, we will go through the portions of Youtube where Python is used as the primary language. Reasons why Python is Used Reducing clutter Implementing newer features Frontend and API deployment Increased security Data visualization and analysis Easier maintenance Reason 1: Reducing ClutterAs Youtube was first established ... Read More

Why is Python the Best Language for Web Scraping?

Swarnava Bhattacharyya
Updated on 24-Mar-2023 14:23:02

422 Views

What is Python Web Scraping? Python Web Scraping is an automatic method of collecting data from the web and its different websites, and performing further operations on the data. These may include storing the data in a database for future references, analyzing the data for business purposes, and providing a continuous stream of data from different sources in a single place. Some common methods of web scraping High performance Simple syntax Available existing frameworks Universality of Python Useful data representation Let us take a detailed look. Reason 1: High Performance Python scripts written for web scraping ... Read More

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

Swarnava Bhattacharyya
Updated on 11-May-2023 15:12:36

124 Views

In the current era of computers and software everywhere, we have thousands of new joinees everyday who want to learn the essential skill of programming. Among beginners, Python is one of the most popular languages to start with, due to its dynamic typing, ease of learning and wide range of applications. However, there are a few recurring frustrations of new Python programmers who are just starting out on their programming journey. We will talk about them here. Problems Faced Unavailability of good learning resources Facing compiler or runtime mistakes Executing an external command through Python ... Read More

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

Swarnava Bhattacharyya
Updated on 24-Mar-2023 14:11:49

144 Views

The coolest Python program I have ever made is Python password hasher. Let's first understand what python password hashing is. What is Password Hashing? Python Password hashing is a form of advanced encryption which can be used to store passwords online safely. In today’s world of everything being online, user passwords are one of the most easily attacked sensitive information on the internet. The password string is converted to a string of random characters using different hashing algorithms, which have been used in my program. The user is instructed to input the password string, then select the appropriate hashing algorithm ... Read More

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

Swarnava Bhattacharyya
Updated on 24-Mar-2023 14:09:40

55K+ Views

What is a Dictionary in Python? A dictionary is Python’s own indigenous representation of a data structure, and can be considered similar to maps in C++. It is a dynamic data structure which stores key-value pairs dynamically, and is mutable. It can be better understood as an associative array, where each element is associated with its key value. Can one key hold more than one value? Although dictionaries in Python store values as key-value pairs, it is possible to store more than one value corresponding to the same key in a dictionary. This is performed by setting containers like ... Read More

How to learn Python without prior programming knowledge?

Swarnava Bhattacharyya
Updated on 24-Mar-2023 14:02:38

1K+ Views

Introduction Python is one of the most popularly used languages in today’s world, with its application spread out in a wide range of domains, ranging from applied fields like computer vision and IoT, to Machine Learning and data-based fields such as Data Analysis. Along with this, Python is one of the easiest languages to start one’s programming journey with, due to its very easy syntax and ease of writing code. Thus here we will look at some steps to learn Python as a beginner. Steps Learning the basics Maintaining consistency Become a part of peer groups Build ... Read More

How to Get the Sign of an Integer in Python?

Swarnava Bhattacharyya
Updated on 24-Mar-2023 14:01:12

16K+ Views

Introduction Python Integers are one of the primary data types, and are used for almost all major mathematical and logical operations. In Python, integers are zero, positive or negative whole numbers without a fractional part and having unlimited precision.They can be expressed in binary, octal and hexadecimal values. In this article, we will learn how to obtain the sign of an integer. Methods Used Using simple mathematical comparison with zero Using copysign() function of math module Using numpy.sign() function Creating a method with abs() function Method 1: Using Mathematical Comparison with Zero We ... Read More

How does a Python interpreter work?

Swarnava Bhattacharyya
Updated on 24-Mar-2023 13:58:32

6K+ Views

What is an Interpreter? The Python interpreter works as a computer converter that converts high-level language to low-level machine language, which is essential for the computer to understand the code written by a programmer. Python codes are executed by an interpreter called CPython, which is written in C language and executes instructions in a block of code one line after another. Steps used Lexing Parsing Creation of byte code Conversion to machine-executable code Returning output Let’s dive into the steps in detail. Step 1: Lexing The first step of analyzing a code block in ... Read More

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

Swarnava Bhattacharyya
Updated on 02-May-2023 15:07:26

217 Views

Introduction Python initially started off as Python version2, which is also known as the Legacy Edition. The last edition of Python2 was Python2.7, which went out of service in 2020. Python 3.x was introduced as a replacement, with a host of improvements and bug fixes over the Python 2.x versions. The older Legacy Python was a LTS software, which means it had Long-Time Support. However, Python 3.x versions are backward incompatible releases, which makes it very essential to upgrade Python 2 codebases to Python 3, to fully enjoy the ease and support of Python 3. The biggest reasons for upgrading ... Read More

Advertisements