📖 generic · 12th TN - English Medium · COMPUTER SCIENCE · Page 53question

PYTHON – VARIABLES AND OPERATORS · Part 11

Chapter 2: 3 · COMPUTER SCIENCE

or lowercase X) and L (only upper case) to denote long integer. Example : , , # Decimal integers 0o102, 0o876, 0o432 # Octal integers 0X102, 0X876, 0X432 # Hexadecimal integers 34L, 523L # Long decimal integers A floating point data is represented by a sequence of decimal digits that includes a decimal point. An Exponent data contains decimal digit part, decimal point, exponent part followed by one or more digits. Example : .

, . , . # Floating point data .E04, .e04 # Exponent data Complex number is made up of two floating point values, one each for the real and imaginary parts. .

. Boolean Data type A Boolean data can have any of the two values: True or False. Example : =True =False . .

String Data type String data can be enclosed in single quotes or double quotes or triple quotes. = ‘A’ = "Computer Science" = ”””String data can be enclosed in single quotes or double quotes or triple quotes.””” Example : 12th Computer Chapter - - Python – Variables and Operators • 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. Points to remember:

Related topics

Have a question about this topic?

Get an AI answer grounded in your actual textbook — with the exact page reference.

Ask AI about this topic →