Python Notes
# Make Python(Celebal Pre Interview preparation ) Notes Online (post in saurabh notes)
# Index:
A] Python
- Features
- Application
- Mutable
- Immutable
C] Type casting
D} Advance Datatype
- List : Apppend, clear, pop, remove, insert, reverse, count
- Tuple : len, max, min, sum, sort, count
- Set : add,clear,pop,remove
- Dictionary : clear, pop, get, keys, copy
E] Functions of List,Tuple,Set,Dictionary
F] Flow Control:
- Selective Statement: If, If-else,Nested If,If-elif-else
- Iterative Statement: For Loop, While Loop
- Transfer Statement: Continue,Break,Pass
G] Function
H]Range
> Type of Argument
> Python OOPS
# Python Interview Preparation:
Now,
A] Python
- Python is high level programming language that was created by guido van rossum and first released in 1991
- Easy to read syntax
- Interpretation/ Interpreted
- Cross-platform compatability
- Large Standard Library: Data Exporting Analysis (numpy,pandas,matplotlib)
- Extensive third Party libraries
> Applications:
- Web Development, App, Games,Data Visualization
B] Python Datatypes:
- Int
- Float
- String
- Boolean
- Complex
- List
- String
- Tuple
- Dictionary
> Types :
A] Mutable Datatype : Value inside object can be changed
B] Immutable Datatype : Value Can not Be changed
Eg: Datatypes
a) Mutable
- List
- Dictionary
- Sets
b) Immutable
- Tuple
- String
C} Type casting
- Conversion of one datatype to another
String - Int => No
String - Float=> No
> Summarize all list, set, tuple, dictionary
> List
1. Mutable
2. []
3. Iteration : Slower
4. More Money
5. Ordered Collection
6. Has Duplicates
Tuple
1. Immutable
2. ()
3. Faster
4. Less Memory
5. Ordered Collection
6. No Duplicates
Set
1. Mutable
2. {}
3.
4.
5.Unorderd Collection
6. No Duplicates
Dictionary
1. Mutable
2. Key: Value
3.
4.
5. Unordered
6. Key- No Duplicates, Value : Duplicates
E] Functions (Typing....)
> Functions of List
- Append () : add element to end of list
- Clear() : remove all elements from list
- Copy() : returns copy of list
- Count() : returns no.of
- Index()
- Insert()
- Pop()
- Reverse()
- Sort()
- Remove()
> Functions of Tuple
- Len()
- Max()
- Min()
- Sum()
- Sorted()
- Count()
> Functions of Dictionary
- Clear()
- Copy ()
- Get()
- Pop()
- Keys()
> Functions of Set
- Add()
- Clear()
- Copy()
- Pop()
- Remove()
- Union
- Update
Comments
Post a Comment