Recent Posts
Why 0.1 plus 0.2 is not 0.3?
What could be the answer to the 0.1 + 0.2? Is it 0.3? If Yes, then you are certainly wrong, time to go to the high school math classes. JK.
Let’s check this fact in the python shell.
Wait!
What’s happening over here?
Why am I getting this fancy number 0.30000000000000004?
The answer lies in the floating-point precision for the binary and decimal system.
Because the sole prime factor in binary (or base-2) is 2, we can only neatly write fractions using only 2 as a prime factor in the denominator.
read more
7 Things I Love About Linux
Hey there! I hope that you all are doing great in your life. I am quite sure that you might be reading this article while on your bed or just lying on your sofa with one foot hanging and the another spreading and stretching far apart. If you are not reading this post, then curse you! Just kidding. :) So let’s get started with the reasons I love Linux
The terminal:- the terminal gives you the ultimate feeling of joy to showcase your typing skills in front of your old grandma (It seems fun until your grandma beats you in the typing test sigh).
read more
How to create a virtual environment in python3?
What is virtual environment? A virtual environment is the environment which differs from the actual installed python and other system environments, which means that you can individually install libraries for the python programs and project in the virtual env and not disturbing the actual system environment.
How to create it? Go to the folder where you want to create an env and write python3 -m venv env it will create an folder naming env in the directory Now go to the env folder by typing cd env then locate the activate.
read more