Python Introduction
Python Introduction
Python is a general purpose programming language created by Guido Van Rossum from CWI (Centrum Wiskunde & Informatica) which is a National Research Institute for Mathematics and Computer Science in Netherlands. Th e language was released in I991. Python got its name from a BBC comedy series from seventies- “Monty Python’s Flying Circus”. Python supports both Procedural and Object Oriented programming approaches.
Key features of Python
- It is a general purpose programming language which can be used for both scientifi c and non-scientifi c programming.
- It is a platform independent programming language.
- Th e programs written in Python are easily readable and understandable.
The version 3.x of Python IDLE (Integrated Development Learning Environment) is used to develop and run Python code. It can be downloaded from the web resource www.python.org.
Programming in Python
In Python, programs can be written in two ways namely Interactive mode and Script mode. The Interactive mode allows us to write codes in Python command prompt (>>>) whereas in script mode programs can be written and stored as separate file with the extension .py and executed. Script mode is used to create and edit python source file.
- yes
- no
- machine dependent
- none of the mentioned
- Interpreter
- Compiler
- Combination of Compiler and Interpreter
- all of these
- Graphical
- Cross-Platform
- Platform Dependent
- All of these
- Free and Open Source
- Freeware
- Open source
- Shareware
- High Level
- Object Oriented
- Low Level
- Both A and B
- student
- s12
- 123
- _123
- a_=3
- _a=3
- a?=3
- All of these
- English
- PHP
- C
- All of the above
- 1995
- 1972
- 1981
- 1991
- Variable names in Python cannot start with number. However, it can contain number in any other position of variable name.
- Variable names can start with an underscore.
- Data type of variable names should not be declared.
- None of the above.
- Keywords
- Identifires
- Token
- Statement
- 100
- 128
- 256
- No Limit
- C
- C++
- JAVA
- PHP
- .python
- .py
- .p
- .pyt
- execute python
- go python
- python
- run python
- Brackets
- Indentation
- Key
- None of the above
- Python Interpreter.
- Python compiler
- Python Volatile machine
- Portable virtual machine