Python
------
What is Python?
- Python is a high-level, versatile, and widely-used programming language that is
known for its simplicity and readability. It was created by Guido van Rossum and
first released in 1991.
some key characteristics - Readability, Versatility, Interpreted Language, Cross-
Platform, Dynamic Typing, Object-Oriented, Open Source, Large Community and
Libraries.
------
Difference between python 2 and python 3?
- Python 2 has more complicated syntax than Python 3. Python 3 has an easier syntax
compared to Python 2.
------
Comments in Python
Single line - # (Hash)
Multiple line - ''' (Triple quotes)
------
Variable - A reserved memory location to store values.
Data Types - Data Types are used to define the type of a variable.
------
BODMAS - Brackets, Orders, Division, Multiplication, Addition, Subtraction.
------------
\n - New Line
0123456
youtube
-7-6-5-4-3-2-1
Strings are immutable - we cannot change the value
lists are mutable - we can change the values
-------------
python Inbuilt Functions
1)print -
2)len -
3)
------------
Lists - Square Brackets[]
-append
-insert
-remove
-pop