Posts

Showing posts from May, 2020

How to track COVID 19 with Python?

Image
COVID 19 pandemic is continuing its spread throughout the world. We hope all our viewers are safe. We track COVID 19 cases with the help of websites and apps. Why do you wanna use these when you have Python? Binary Pages is here with a code to ease this task. Now you can track COVID cases of any country. Python made work easy!! Just copy the code given below and Run it!! Tracking COVID cases is in your hand. Note: For this, you need to install  covid and matplotlib  package. For this please check out How to install Python modules? Say 'Bye' to fake apps and websites. For COVID 19 Live Statistics please check out COVID 19:Live Statistics Follow Binary Pages for more exciting content. C O D E  W I T H  B I N A R Y P A G E S

How to generate QR code with Python?

Image
QR code or Quick Response code has become among everyone. We often use many websites and apps to generate our QR code. Binary Pages is here with a code to ease this task. Python has everything to help you out. Generating QR code becomes easy with Python. It's just a matter of three to four lines of code.  Why wait? Just copy the code given below and Run it!! QR Generation is in your hand. Note: For this, you need to install pyqrcode  package. For this please check out How to install Python modules? Say 'Bye' to fake apps and websites. Follow Binary Pages for more exciting content. C O D E  W I T H  B I N A R Y P A G E S

How to check Internet Speed with Python?

Image
Can you check Internet Speed with Python? Binary Pages is here with a cool stuff to code. We often rely on websites and apps to check our Internet Speed. Why do you wanna use these when you have Python with you? Realize the power of Python. Just copy the code given below and Run it!! Internet Speed is in your hands. Note: For this, you need to install speedtest-cli package. For this please check out How to install Python modules? Say 'Bye' to fake apps and websites. Follow Binary Pages for more exciting content. C O D E  W I T H  B I N A R Y P A G E S

How to install Python modules?

Image
Before we get started, let's have a glimpse at the basics of Python modules. What are Python modules? Why is it used? The doubts of a beginner goes on... That's absolutely fine. Doubts are the key tool of a programmer. Okay, let's get started. In programming, we often reuse code that we've written or someone else has written. This is called code reuse and nearly all languages provide some way of doing it. There are also Functions that let us group code into logical blocks that can be executed at a later point and as many times as we need. But as our scripts get bigger and more complicated, we want to be able to reuse more than a single function. We might even want to reuse entire scripts and other programs that we write. This is where Python modules come in to play. Modules can also be defined as a file containing Python code which can define functions, classes, and variables. These modules can be imported to your program when needed. To use Python modules, you must ...

How to set up Python Environment in macOS

Image
By default, macOS ships with a version of Python installed. But it's Python 2, not Python 3. To check if Python 3 is installed run  python3 --version  command in the Terminal. Now let's see how to install python on macOS. Navigate to the  Official Python page . Click the Downloads menu. Since we're running this on a macOS computer, the website will automatically offer a link to install Python 3 for macOS.  Once the file is downloaded, execute it, go through the license in Terms of Use pages, and finally install it. Depending on how your machine is setup, you might need to enter your password to perform the actual installation using administrator rights. Also check out How to set up Python Environment in Windows How to set up Python Environment in macOS

How to set up Python Environment in Linux

Image
If your computer runs Linux, chances are extremely high that your distribution comes with Python pre-installed. To check if Python 3 is pre-installed run  python3 --version  command in terminal. Now let's see how to install python on Linux.  Open the Terminal run the following commands $ sudo apt-get update $ sudo apt-get install python3.8.2 Note: You can also replace 3.8.2 with any version of Python. We recommend you install the latest version on your machine. Also check out How to set up Python Environment in Windows How to set up Python Environment in macOS

How to set up Python Environment in Windows

Image
Windows computers don't usually come with Python preinstalled. To check if your computer already has Python installed, run the command  python --version  in command prompt. Now let's see how to install python on Windows.  Open browser and navigate to the  Official Python Download page.  Under the section Python Releases for Windows, click Latest Python 3 Release link. In the page that appears, under the section Files select either Windows x86-64 executable installer for 64-bit or Windows x86 executable installer for 32-bit. Once the file is downloaded, run the installation file. In the window that appears, be sure to check the box that says  Add Python 3.x to PATH   and click Install Now to proceed. Also check out How to set up Python Environment in Linux How to set up Python Environment in macOS

Python: Get Started

Image
Python... Wait!! Why Python? We have many other languages right. Why is Python so popular? It's just because of its simplicity. Programming in Python usually feels similar to using a human language. This is because Python makes it easy to express what we want to do with syntax that's easy to read and write. Python is a cross-platform programming language with wide applications. Python is super popular in the IT industry, making it one of the most common programming languages used today. Python isn't new. Its first version was released by Guido van Rossum back in 1991. Since then, the community that develops it has grown and the language has advanced a lot. For many years, Python was considered a beginner's language and was mostly used for teaching concepts or writing very small simple scripts. But in recent years, the adoption of Python has grown dramatically. One reason for this is that the language has become more powerful. It's also because there are more...