PYTHON
Python is a high level object oriented programming language developed by Guido Van Rossum.
Python is influenced with two programming language--
=>ABC Language
=>Modula-3
It is an interpreted language.
(interpreted means that code execute line by line at a time)
=>Python is copyrighted.Python source code is available under the GNU General Public License (GPL).
FEATURES--
YOU CAN GET PYTHON FROM HERE
PYTHON DOWNLOAD
MODES IN PYTHON IDLE
Interactive- Useful for testing a code, you type the command and get the result.
Script mode--
If you’re writing a program, script mode is what you need. Instead of having to run one line or block of code at a time, you can type up all your code in one text file, or script, and run all the code at once.
In Python shell you can go to “File” -> “New File” (or just hit Ctrl + N) to pull up a blank script in which to put your code. Then save the script with a “.py” extension.
PYTHON CHARACTER SET :)
Digits=>0-9
Special symbols=>
< , > . " ' , ; : % space ! + - * / ** \ ( ) { } [ ] // = != == _ etc.
Other characters=> ASCII and Unicode characters
Whitespaces=> blank space, newline, carriage return, tabs
TOKENS
In a text, individual words and punctuation mar are called lexical unit or token.
TOKENS IN PYTHON
2-Punctuators
3-Operators
4-Keyword
5-Literals

[please share this]
{write a comment and follow} :)
FUNDAMENTALS-
PYTHON CHARACTER SET :)
Valid characters that recognize by a coding language are called Character set.
Digits=>0-9
Letter=>a-z, A-Z
Special symbols=>
< , > . " ' , ; : % space ! + - * / ** \ ( ) { } [ ] // = != == _ etc.
Other characters=> ASCII and Unicode characters
Whitespaces=> blank space, newline, carriage return, tabs
TOKENS
In a text, individual words and punctuation mar are called lexical unit or token.
TOKENS IN PYTHON
1-Identifiers
2-Punctuators
3-Operators
4-Keyword
5-Literals
TOKEN
The words reserved by a programming language, which convey a special meaning to the interpreter/compiler are called keywords.
Keywords in the python are case sensitive.
We cannot use a keyword as variable name, function name or any other identifier.
All the keywords are in lowercase and they must be written as it is, except True, False and None. The
list of all the keywords are given below.
python language contains these keywords.
IDENTIFIERS
Fundamental building blocks of a
program, which used to store different values
during different phase of program are called identifiers.
RULES TO FORM VALID IDENTIFIERS
1. It must not be a keyword
2. Upper and lowercase characters are different
3. Digits 0 -9 can be used except first character
4. The first character must be a letter or _ underscore
5. It can not contain any special character except _ underscore
EX OF VALID IDENTIFIERS
_zxy239
DASH23
Variables
•After creating a program, we store values so that it can be used.
Objects were used to capture data, which can be manipulated by
computers.
•We know that variable or objects is a name which refers to a
value.
All objects has:
(A) type – Sets of values, and the operations (Data type)
(B) Values
(C) Identity,- I object's address in memory and does not
change once it has been created.
[please share this]
{write a comment and follow} :)