Python Programming Tutorial for Beginners



  • Python is an interpreted, object-oriented, high-level programming language that can be used for a wide variety of applications.
  • Python is a powerful general-purpose programming language.
  • First developed in the late 1980s by Guido van Rossum.
  • Python is open source programming language.
  • Guido van Rossum named it after the BBC Comedy TV series Monty Python’s Flying Circus
Founder of Python Guido van Rossum

Advantages of Python Programming


  • Python is easy to learn and use.
  • Large number of libraries available that can be used in your projects today.
  • High Level Programming Language.
  • Huge Community
  • Object-oriented language
  • Portable across Operating systems

Organizations using Python


  • Google
  • microsoft
  • facebook
  • mozilla
  • cisco
  • Quora
  • YouTube etc...

Python Based Jobs


  • Data Analysis
  • Artificial Intelligence
  • Automation
  • Web Application
  • Desktop Application
  • Hacking
  • School Students
Python

High-level Languages

High-level languages, like C, C++, JAVA,Python etc., are very near to English. It makes programming process easy. However, it must be translated into machine language before execution. This translation process is either conducted by either a compiler or an interpreter. Also known as source code.


Machine Code

Machine languages are very close to the hardware. Every computer has its machine language. A machine language programs are made up of series of binary pattern. (Eg. 110110) It represents the simple operations which should be performed by the computer. Machine language programs are executable so that they can be run directly.


Compiler

A Compiler transforms code written in a high-level programming language into a machine code or any other Intermediate code.It converts the text that a programmer writes into a format the CPU can understand.The conversion manner is diffrent.It convers the Entire source code in one go and reports all the errors of the program along with the line numbers.After all the error are removed,the program is recompiled and after that the Compiler is no needed in memory as the object program is available.


interpreter

The interpreter converts the source code line-by-line during Run Time,translates it into machine code or virtual machine code. Interpreter allows evaluation and modification of the program while it is executing.if there is error in any line,it reports it at the same time and program executio cannot resume untill the errror is rectified.Interprerer must always be present in the memory every time the program is run.it is first interpreted and then executed


compiler vs interpreter

Diffrence between Compiler and Interpreter

Compiler Interpreter
It read the whole program at a time. It read the program line by line.
It translates the whole program at a time into machine code. It translates only one line of program at a time into machine code.
It produces machine code which is directly understood by computer. It produces intermediate code after translation.
It takes large amount of time to analyze the source code. It takes less amount of time to analyze the source code.
it is faster it is slower
It requires more memory space. It requires less memory space.
Programming language like C,C++ use compiler. Programming language like Python,Ruby use interpreter.

List of Programs


Sample Programs


Python Database Connection


Python Flask


Python Tkinder Tutorial