Posts from Python

Complex numbers in Python

By Priya Bhowmick

Complex numbers are the numbers that contain a real part and a complex part, for example ‘2+3j’. We can use complex numbers in python using the ‘cmath’ modu.... Read More

Convert tuples into list in Python

By Varun Bhattacharya

Hello programmers, in this tutorial we will see how to convert a tuple into a list in Python. A group of objects stored in a single variable and immutable is known as a Tuple in Py.... Read More

tf.keras.losses.Hinge in TensorFlow

By Sumit Chhirush

Hello programmers, in this tutorial, we will learn how to use tf.keras.losses.Hinge in TensorFlow. All the codes are done in a collab notebook What is Hinge loss? It is a loss func.... Read More

Convert a Set to Dictionary in Python

By Aditi Deo

Dictionaries in Python store the data in form of key-value pairs where the keys should be unique and immutable. Whereas Sets in Python are used to store a list of unique values ins.... Read More

Convert Binary tuple to Integer in Python

By Aditi Deo

Consider a tuple consisting of binary elements such as (1,1,0,1,0). A binary number consists of 1s and 0s to represent an integer. A tuple in Python stores multiple elements inside.... Read More

Find Initials of a Name in Python

By Aditi Deo

Often in many scenarios Initials of names are used in signatures in various documents and web forms. The initials are a shorter representation of the name of an individual. They ar.... Read More

Python *args and **kwargs

By Priya Bhowmick

Today we are discussing two special types of function arguments *args and **kwargs. In Python we have three different types of function arguments: Formal arguments for example arg .... Read More

How to restart, shutdown or log out a computer through Python script

By Priya Bhowmick

Python is one of the languages with the most versatile features. Today we will explore one of these features in Python. We will write a code in Python that will help to restart, sh.... Read More

Related Posts