Python -Variables and Operators

Unit 5 > Computer Science > Class 12 > Samacheer Kalvi - English Medium

Objectives


• Appreciate the use of Graphical User Interface (GUI) and Integrated Development Environment (IDE) for creating Python programs. • Work in Interactive & Script mode for programming. • Create and assign values to variables. • Understand the concept and usage of diff erent data types in Python. • Appreciate the importance and usage of diff erent types of operators (Arithmetic, Relational and Logical) • Creating Python expression (s) and statement (s).

Summary


• Python is a general purpose programming language created by Guido Van Rossum. • Python shell can be used in two ways, viz., Interactive mode and Script mode. • Python uses whitespace (spaces and tabs) to define program blocks • Whitespace separation is necessary between tokens, identifiers or keywords. • A Program needs to interact with end user to accomplish the desired task, this is done using Input-Output facility. • Python breaks each logical line into a sequence of elementary lexical components known as Tokens. • Keywords are special words that are used by Python interpreter to recognize the structure of program.