INTRODUCTION TO PYTHON LANGUAGE
In this section we will cover a brief introduction about Python and syntax's for beginners
Python is a powerful high-level,interpreted,interactive,object-oriented,standalone programming language created in 1980's by Guido van Rossum.It's name came from MONTY PYTHON.
FEATURES OF PYTHON
- It has simple easy-to-use syntax,making it the perfect language for someone trying to learn computer programming for the first time.
- No compilation required, just run the script.
- Easy maintanance,portability,scalability,readability,
- It is an open source code.
- Can be Extended to C(Cython),Java(Jython), .NET(Ironpython)
- Every memory allocation is done dynamically.
- Supports a tonn of libraries and Universal languages.
- Plays major role in Embedded system ie in automation.
what is an interpreter language?
An interpreter is a program that reads and executes code. This includes source code, pre-compiled code,and scripts. Common interpreters include Perl, Python, and Ruby interpreters, which execute Perl, Python, and Ruby code respectively.
| COMPILER | INTERPRETER |
|
| |
| C,C++,C#,JAVA | Python,RUBY,Perl,JAVA Scripting |
| Will Generate Object code. | No object code. |
| Whole source code will be treated as input. | Line by line execution of source code. |
| Compile will create separate executable file | File name itself is executable |
| Once the code is compiled successfully we can execute n number of times | Every time statements will be executed |
| Compiler needs more memory | Needs less memory with respect to compilers |
| Faster operation | Slower compared to compilers |
What is IDLE?
IDLE is Python’s Integrated Development and Learning Environment.
IDLE has the following features:
- coded in 100% pure Python, using the
tkinterGUI toolkit - cross-platform: works mostly the same on Windows, Unix, and Mac OS X
- Python shell window (interactive interpreter) with colorizing of code input, output, and error messages
- multi-window text editor with multiple undo, Python colorizing, smart indent, call tips, auto completion, and other features
- search within any window, replace within editor windows, and search through multiple files (grep)
- debugger with persistent breakpoints, stepping, and viewing of global and local namespaces
- configuration, browsers, and other dialogs
In the next topics we will learn how to create a file and our first "Hello World!" Programming in Python..


