What is Programming

 Programming

Just like we use Hindi or English to communicate with each other we use a programming language like Python to communicate with the computer.

Programming is a way to instruct the computer to perform various tasks.

What is Python?

Python is a simple and easy to understand language which feels like reading simple English. This pseudo code nature of Python makes it easy to learn and understand by beginners.



Features of Python


  1. Easy to understand = less development time
  2. Free and open source
  3. High level language
  4. Portable -:work on Linux/window/Mac
Installation

Python can be easily installed from Python.org when you click on the download button Python can be installed right after you complete setup by executing the file for your platform.

Chapter-1  Modules, Comments & Pip
Lets write our very first Python program create a file called Hello.Py and Paste the below code in it.
Print("Hello World")-: Print is a function (More later)
Execute this file (.py file) by typing Python hello.py and you will see Hello World printed on the screen.

Modules
A modules is a file containing code written by somebody else (usually) which can be imported and used in our programs
Pip
Pip is the package manager for Python you can use Pip to install a module on your screen.
Types of Modules
There are two types of modules in Python
  1. Built in Modules-: Pre installed in python
  2. External Modules-: Need to install using Pip
Some example of built in Modules are OS, ABC, etc.
Some example of external Modules are TensorFlow, flask etc.
Using Python as a calculator we can use Python as a calculator by typing "Python" on the terminal
This opens REPL or Read Evaluate print loop

Comments
Comments are used to write something which the program does not want to execute.

Comments

Popular Posts