Basic of Python Programming
INTRODUCTION
Computer programming languages are designed to process different kinds of data, viz. numbers, characters and strings in the form if digits, alphabets, symbols etc, to get a meaningful output known as result or information. Thus, program written in any programming language consists of a set of instructions are written using specific words and symbols according to syntax rules or the grammar of a language. Hence, every programmer should know the rules, i.e. syntax supported by language for the proper execution of a program.
This chapter describes basics of python programming, i.e. syntax, data types, identifiers, tokens, and how to read values fro the user using input function, etc.
PYTHON CHARACTER SET
Any program written in Python contains words or statements which follow a sequence of characters. When these characters are submitted to the Python interpreter, they are interpreted or uniquely identified in various contexts, such as characters, identifiers, name or constants. Python uses the following character set:
- Letters: Upper case and lower case letters.
- Digits: 0,1,2,3,4,5,6,7,8,9
- Special Symbols: Underscore(_), (, ), [, ], {, }, +, -, *, &, ^, % , $, #, !, Single quote('), Double quote("), Back slash(\), Colon(:), and Semi Colon (;).
- White Spaces: ('\t\n\x0b\x0c\r'), Space, Tab.
Comments
Post a Comment