Username | Is There a portable Way To Get The Current Username in Python?

In this tutorial we will find out Is there a portable way to get the current username in Python there are three ways to do so which are using the OS library, using the Getpass library, and Using os and pwd modules. And here we will discuss all of them one by one. Username As … Read more

What If Tensor Flow Not Found Using Pip?

In this tutorial, we will come to know What If Tensor Flow is Not Found Using Pip. This might be due to a number of reasons that we will discuss all here. Tensor Flow As we use pip to install new libraries and Tensr Flow is also a software library, And here we will discuss … Read more

Time | How Do I Convert Seconds To Hours, Minutes And Seconds in Python?

Here we will learn about time and How to convert seconds to hours, minutes, and seconds which we can do using three different ways like simple calculations, using built in function divmod(), and using the datetime Module. Calculating Time in Different Ways There are different ways to get convert the seconds into different parameters of … Read more

How Getting file Size in Python?

Here we will learn How Getting file Size in Python where we can use the stat() function of the os module which could get us all the details of the file that we passed as an argument to it, And it will return all the possible information related to that file including the size in … Read more

Difference Between Cython vs Python?

In this tutorial, we will learn the differences between Cython and Python As in CPython we write the program in C and it is used for compiling the code before giving it to an interpreter whereas, in the case of python, it is simply interpreted -based language. And here we will draw some differences between … Read more

What Is The difference Between An Expression And A Statement In Python?

In this tutorial, we will discuss the Difference Between An Expression And A Statement In Python, where a statement is any one line in code is known as the statement whereas a special type of statement where we perform any action or may contain identifiers, Operands, and Operators are involved which make some changes in … Read more

How To Find Total Memory Used By Python Process?

In this tutorial, we will learn How To Find the Total Memory Used By Python Processes, which we can get using psutil library and os library after getting each process as a variable using os we can find the memory used in that process to understand it in a better way look at the example … Read more

How to Find Where Python Is Installed On Windows?

In this tutorial, we will find How can I find where Python is installed on Windows to get it we have to follow certain steps on our PC, and to get it done stay tuned here. Python Location To know where we have installed python on our computer we need to follow the steps given … Read more

Generate ‘n’ Unique Random Numbers Within Range In Python.

In this post, we will learn how to Generate ‘n’ unique random numbers within a range as we can do using a random library that provides generate random numbers() function which could provide the random numbers where a range is given as arguments in the function. Generate Random Numbers Random numbers are those numbers that … Read more

What’s The Difference Between `raw_input()` and `input()` in Python 3?

In this tutorial, we will discuss What’s The Difference Between `raw_input()` and `input()` in Python 3, As raw input() was used in python 2 which was used for reading the string input. which is not there in the case of python 3. In python 3 we simply use input() to get input in both the … Read more

%d bloggers like this: