PyCodePro

Previously LP16 - A website that teaches Python programming language through interactive tutorials, practice exercises, and real-world projects.

GETTING STARTED WITH PYTHON


GETTING STARTED WITH PYTHON


PYTHON –
It Is a High Level Programing Language



Language processor –
Python Uses Interpreter for Converting High Level Language to Low Level Language and for Finding Errors.


 STORAGE –
The Value of Data Stores in Variables.


DATA TYPE –
Data Type is Assigned to Values and It is Storage of Data.


SAVING A FILE –
Before Saving a File, We Need to Give the File Extension (.py) otherwise it Will Saved As a Normal Text File.


KEYWORDS –
They Are the Special Words Which Are Pre-Programed and Task for Each and Every Keyword is Pre-Defined; Basically They Are Reserved Words.
e.g. – Integer(int), float , Character(chr), String(str) 



RULES TO DECLARE THE VALUE

1.   No Keyword Can Be Taken as a Variable
2.  It Must Be Started with Any Alphabet
3.  It Cannot Be Started with Any Special Character or Digit.
4. It Must Be Meaningful
5.No Space Can Be Given Between the Character of Any Variable Name.

e.g. -  First Name (wrong)
       first_name (right)


PYTHON TOKENS –
There are 5 Type of Tokens in Python –

1 – Keywords
2 – Identifiers
3 – String
4 – Literals
5 – Operators


IDENTIFIERS –
Identifiers are Meaningful Name Given to the Variable Through Which User Can Understand the Meaning of Variable.


LITERALS –
They are Data Items with the Fixed Value.

There Are Following Different Kinds of Literals-
1 – String Literal
2 – Numeric Literal – (Either Integer or Float)
3 – Boolean Literal – (Either True or False)
4 – Special Literal Name
5 – Literal Collections

STRING –
The Group of Characters Are Known as Strings

Operators –

1 – Arithmetic Operator – (+) (-) (x) (/-Divide)
2 – Relational Operator – (>,<) (<=,>=)
3 – Logical Operator – (And or Not)
4 – Special Operator – (assignments  (=) ) , (Comparison (==) )

GETTING STARTED WITH PYTHON GETTING STARTED WITH PYTHON Reviewed by Learn Python on October 29, 2019 Rating: 5

No comments:

Powered by Blogger.