Installation Of Python🐍 Editor And Python🐍 Variable Declaration

In this article, we will see how to install Python editor on Windows 10. We will use Anaconda navigator and Jupyter Notebook to edit, write and make Python applications. We will cover Python Variables Declaration with examples.

Introduction on Anaconda

 
Anaconda distribution is the most trusted Distribution for Data Science.
 
Anaconda has more than 1500 open source packages, an environment manager, and a  Python/R data science distributions, as well as being free and easy to install on the latest operating systems. We will go with Anaconda 3 on Windows 10.
 

Installation of Anaconda Navigator

 
Let’s start with installation process of Anaconda navigator on Windows 10 Operating System.
 
Step 1
 
Go to web browser, Search this URL,
 
https://www.anaconda.com/download/ 
 
User can see this screen. Now, click the Download Button.
 
Installation Of Python🐍 Editor And Python🐍 Variable Declaration 
 
Step 2
 
There are two options available on screen choose either one of them,
 
Download 64bit Anaconda editor
or
Download 32bit Anaconda editor 
Installation Of Python🐍 Editor And Python🐍 Variable Declaration 
 
We will go with 32-bit Anaconda editor,
 
Installation Of Python🐍 Editor And Python🐍 Variable Declaration
 
Step 3
 
Installation Of Python🐍 Editor And Python🐍 Variable Declaration
 
Step 4
 
For personal use or for a group of people, according to the requirements of the user we have to decide the type of the installation,
 
As of now we will install Anaconda Navigator for personal use, so choose this radio button: Just Me(recommended)
 
Select Next
 
Installation Of Python🐍 Editor And Python🐍 Variable Declaration
 
Step 5
 
If required, then change the installation location with Browse option. Then select Next.
 
Installation Of Python🐍 Editor And Python🐍 Variable Declaration 
 
Step 6
 
Choose the second check box: Register Anaconda as my default Python 3.7
 
The reason behind this it allows other programs, such as Python Tools for Visual Studio PyCharm, Wing IDE, PyDev, and MSI binary packages, to automatically detect Anaconda as the primary Python 3.7 on system. Now, select on Install.
 
(The first option have the basic pitfall which is it causes problems while user requires to uninstall or reinstall Anaconda.)
 
Installation Of Python🐍 Editor And Python🐍 Variable Declaration
 
Step 8
 
Wait until the installing process is completed. It will take a maximum of 30 to 40 minutes depending on the operating system and internet connection.
 
Installation Of Python🐍 Editor And Python🐍 Variable Declaration
 

Why do we use Navigator?

 
Data scientists mostly use multiple versions of environment packages and scientific packages. The command-line program conda is the combination of an environment manager and package manager. There are dependencies and separation required for any version, where packages can be installed, run and updated inside the navigator and work properly. From this point of view, we can say that navigator is easy to use and doesn’t require conda commands.
 
Step 9
 
Go to Start - Select Anaconda Navigator (Anaconda3)
Installation Of Python🐍 Editor And Python🐍 Variable Declaration 
 
This is how Anaconda Navigator looks:
 
Installation Of Python🐍 Editor And Python🐍 Variable Declaration 
 
Step 10
 
Launch the Jupyter Notebook 6.0.1:
 
Installation Of Python🐍 Editor And Python🐍 Variable Declaration 
 
After  a few minutes you can check if it launched successfully and Jupyter Notebook 6.0.1 is opened in a new window of the same browser.
 
Installation Of Python🐍 Editor And Python🐍 Variable Declaration 
 
Step 10
 
All the Python Library and References are getting installed for the very first time. It will take a few minutes. Note that it runs on http://localhost:8888/tree
 
Choose New dropdown menu and select Python 3.
 
Installation Of Python🐍 Editor And Python🐍 Variable Declaration 
 
Step 11
 
This screen will be open where you can type code for the Python Applications.
Installation Of Python🐍 Editor And Python🐍 Variable Declaration 
 
No matter whether you are at Beginner level or at an Advanced level. It is very simple to go ahead.
 

Python Variable Declaration

 
Every programming language follows some basic rules. Let’s see how Python variables are going to be implied and how it  differs from other programming languages.
 
As we know Python doesn’t requires any data type to declare its variable. Variable is the object where some value is stored in it. Whatever the value assigned to the variable its type is decided by the Python interpreter.
 

How to name a variable in Python

 
Python Variables always starts with a letter (a-z/A-Z) or underscored(_).
 
Example
 
Open the Jupyter Notebook, create a new Python 3 Notebook and get started with this code and check the output of the variable.
 
In this example we can see that, Variable name Python is valid. 21Python is not valid because it starts with a number ’2’. 
Installation Of Python🐍 Editor And Python🐍 Variable Declaration 
 
There is no particular syntax required at the beginner’s level of the Python Programming.
 
Python is case-sensitive. It means there are Python and python both considered as different names of the variables.
 
Example
Installation Of Python🐍 Editor And Python🐍 Variable Declaration 
 
Python stored a value “new”, whereas python is not declared and different variable.
 
There are some Reserved Keywords available for Python. It is not used for the Python Variable and value to be assigned to the variable cannot be a keyword name.
 
and def False import not True
as del finally in or try
assert elif for is pass while
break else from lamda print with
class except global None raise yield
continue exce if nonlocal return
 
These are three basic and universal rules for the Python variable declaration.
 

Summary

 
In this article we learned how the Python Notebook: Jupyter is installed with Anaconda Navigator. You can also go with Pycharm as Python Notebook. Jupyter works on localhost. Don’t close the Anaconda Navigator while you are working with Python Notebook. Also we have checked the variable declaration in Python.
 
Resource
 
https://www.anaconda.com/download/