Rohan Singh has Published 171 Articles

Python Program to Check if a string is a valid shuffle of two distinct strings

Rohan Singh

Rohan Singh

Updated on 17-Apr-2023 10:11:07

366 Views

In Python, we can use inbuilt functions like len() and logic to check the sequence of the characters in the resultant string to know if a string is a valid shuffle of two distinct strings. A valid shuffle of two distinct strings means that a string is formed by mixing ... Read More

Difference between '__eq__' VS 'is' VS '==' in Python

Rohan Singh

Rohan Singh

Updated on 17-Apr-2023 10:09:42

6K+ Views

The __eq__, ‘is’ and == operators in Python are used to compare the equality of objects in Python. The __eq__ method checks for the equality of objects of the same class or if we want to make a custom comparison function. The ‘is’ operator checks for the memory location of ... Read More

Difference between 'and' and '&' in Python

Rohan Singh

Rohan Singh

Updated on 17-Apr-2023 10:06:17

3K+ Views

In Python ‘and’ and ‘&’ both are used to perform logical operations. The and-operator is used to perform logical AND operation whereas the & operator is used to perform bitwise AND between two expressions. In this article, we will explore the differences between the two operators and how to use ... Read More

Difference Between ‘+’ and ‘append’ in Python with examples

Rohan Singh

Rohan Singh

Updated on 17-Apr-2023 09:52:11

1K+ Views

In Python, the + operator is used to concatenate two lists or strings together and return a new string whereas the append operator is used to add elements to the end of an existing string. The + acts as an operator whereas append() is a method in Python. In this ... Read More

Difference between __sizeof__() and getsizeof() method in Python

Rohan Singh

Rohan Singh

Updated on 17-Apr-2023 09:50:31

3K+ Views

The __sizeof__() method and the getsizeof() method both are used to get the size of the objects used in the program. The getsizeof() method returns an additional overhead for garbage collection along with each element size of the list. The __sizeof__() method returns the actual size of the object without ... Read More

Difference between != and is not operator in Python

Rohan Singh

Rohan Singh

Updated on 17-Apr-2023 09:48:50

6K+ Views

The != operator checks if the value of both the objects being compared have the same value or not. On the other hand “is not” operator checks if both the objects being compared are not pointing to the same reference. If the objects being compared are not pointing to the ... Read More

Active product sales analysis using matplotlib in Python

Rohan Singh

Rohan Singh

Updated on 17-Apr-2023 09:46:31

1K+ Views

Matplotlib in Python has various functions like read_csv, sort_values, group_by, etc to perform sales data analysis. Every online business which is involved in product sales of any type uses product sales data analysis to increase their sales and know their customers better. Any company which is involved in any type ... Read More

Activation Functions in Pytorch

Rohan Singh

Rohan Singh

Updated on 17-Apr-2023 09:44:19

894 Views

Pytorch is an open-source machine learning framework that is widely used to create machine learning models and provides various functions to create neural networks. The activation function is a key component of neural networks. The activation function determines the output of a node in the neural network given an input ... Read More

Action Chains in Selenium Python

Rohan Singh

Rohan Singh

Updated on 17-Apr-2023 09:42:54

4K+ Views

Action chains in selenium python are the execution of multiple browser actions together in sequence. Selenium is a popular open-source automation testing tool used to test web applications and automate browser actions. Selenium can chain multiple browser actions together and this chaining of multiple actions is known as Action chains. ... Read More

Access meta data of various audio and video files using Python

Rohan Singh

Rohan Singh

Updated on 17-Apr-2023 09:39:36

3K+ Views

We can access the metadata of audio files using Mutagen and the eyeD3 module in Python. For video metadata, we can use movies and the OpenCV library in Python. Metadata is the data that provides information about other data like audio and video data. Metadata of audio and video files ... Read More

Advertisements