Python Notes

# Make  Python(Celebal Pre Interview preparation ) Notes Online (post in saurabh notes) 

# Index:

A] Python

  • Features
  • Application 
B] Python Datatypes

  • Mutable
  • Immutable
C] Type casting

D} Advance Datatype
  1. List :  Apppend, clear, pop, remove, insert, reverse, count
  2. Tuple : len, max, min, sum, sort, count
  3. Set : add,clear,pop,remove
  4. Dictionary : clear, pop, get, keys, copy
E] Functions of List,Tuple,Set,Dictionary

F] Flow Control:
  1. Selective Statement: If, If-else,Nested If,If-elif-else 
  2. Iterative Statement: For Loop, While Loop
  3. 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
> Features
  1. Easy to read syntax
  2. Interpretation/ Interpreted
  3. Cross-platform compatability
  4. Large Standard Library: Data Exporting Analysis (numpy,pandas,matplotlib)
  5. Extensive third Party libraries 

> Applications:

  • Web Development, App, Games,Data Visualization
B] Python Datatypes:
  1. Int
  2. Float
  3. String
  4. Boolean
  5. Complex
  6. List
  7. String
  8. Tuple
  9. 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
  1. Append () : add element to end of list
  2. Clear() :  remove all elements from list
  3. Copy() : returns copy of list
  4. Count() :  returns no.of 
  5. Index()
  6. Insert()
  7. Pop()
  8. Reverse()
  9. Sort()
  10. Remove()
> Functions of Tuple
  1. Len()
  2. Max()
  3. Min()
  4. Sum()
  5. Sorted()
  6. Count()
> Functions of Dictionary
  1. Clear()
  2. Copy ()
  3. Get()
  4. Pop()
  5. Keys()
> Functions of Set
  1. Add()
  2. Clear()
  3. Copy()
  4. Pop()
  5. Remove()
  6. Union
  7. Update

Comments

Popular posts from this blog

[ STRUCTURED ] Unity Catalog Concept in Databricks