Basic of Python Class VIII
Basic of Python Class VIII
Languages of Computer:
Translator:
1) Assembler: It converts assembly language programs into machine language.
2) Compiler: It convert HLL program into machine language in one go
3) Interpreter: It convert HLL program into machine language line by line
Python: Python is a high level, object oriented, easy to learn language developed by Guido
Van Rossum in 1991.
Features of python:
1. Interpreted language: it converts Source code of high level language into machine code line
by line so it is called interpreted language.
2. Open source software and free
3. Platform independent language: It works on multiple platforms such as Linux, UNIX and
Windows
4. Easy to learn and use
5. Graphical user interface
6. Large Standard Library
Uses of python:
1. Used to web and internet application development
2. Scientific and Numeric calculation
3. Game Development
4. General Purpose software Development
● Python does not allow punctuation characters such as @, & and % within
identifiers.
● String literals
● Numeric literals
● Boolean literals
● special literal
● None
Operator: Operators are special symbols which perform some computation. Operators and
operands form an expression.
Data Types: Data type is a set of values and the allowable operations on those values.
Python has a great set of useful data types. Python’s data types are built in the core of the
language.eg integer, string, float, Boolean.
Punctuator: These are symbols that are used in a programming language to organize
programming sentence structures
Case Sensitive Programming: Case sensitivity describes a programming language's (C, C++,
Java, C#, Verilog, Ruby, Python and Swift) ability to distinguish between upper and lower case
versions of a letter.
total=Eng+Hindi+Math+Sc+sst
area =0.5*b*h
area =0.5*b*l