Sunday, September 14, 2014

Python for Tester: Python Introduction


PYTHON
Python is a interpreted, interactive, object oriented scripting language
Python is an interpreted language: We can execute it directly by interpreter, no need of compiler
Python is interactive as we can directly start its console and write and execute command
Object oriented, it support OOPS concepts




Installation of Python
Download this .msi installer and run, It will install python and will set it to your path variable as well

After installation, go to command prompt and type python, here it will display version

Python version can be seen by python -v


If does not display then set python “C:\Python27” in path variable and check again
Ctrl+Z is to come out from interactive mode



High Level features of Python
Easy to write code(very less keywords), simple syntax, no semicolon
Support both structural as well as OOPS style of programming
Interactive language, we can execute single statements as well
Rich set of existing libraries
Can easily be coupled with other languages like Java, C, C++
Support automatic garbage collection
Support all major databases
Supporting large set of platforms like Windows, MAC, Unix, Linux etc

No comments:

Post a Comment