0% found this document useful (0 votes)
40 views7 pages

Quick Revision

This document provides an overview of Python concepts organized into topics including: - Comments - how to write single-line and multi-line comments - Variables - how to define, assign values to, and differentiate local vs global variables - Data types - the basic data types like int, float, string and how to cast between them - Strings - how to define, index, slice, format and use common string methods - Control flow - the syntax of if/else statements, and shortcircuit evaluation - Operators - comparison, logical, assignment and arithmetic operators and their usage

Uploaded by

mayur pathode
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views7 pages

Quick Revision

This document provides an overview of Python concepts organized into topics including: - Comments - how to write single-line and multi-line comments - Variables - how to define, assign values to, and differentiate local vs global variables - Data types - the basic data types like int, float, string and how to cast between them - Strings - how to define, index, slice, format and use common string methods - Control flow - the syntax of if/else statements, and shortcircuit evaluation - Operators - comparison, logical, assignment and arithmetic operators and their usage

Uploaded by

mayur pathode
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Sr.

No Main Topic Subtopic Status Key Details


1 Intoduction Basic what is python
2 Intoduction Basic what can python do
3 Intoduction Basic why python
4 Intoduction Basic Data science defination
5 Intoduction Basic ML, DL, AI difference, web diagram with DS
6 Intoduction Basic cmd
7 Intoduction Basic pip
8 Intoduction Basic jupyter notebook
9 Intoduction Basic anaconda
10 Intoduction Basic .ipynb
11 Intoduction Basic .py
12 Intoduction Basic Features of python
13 Comments Single comment start with '#'
14 Comments Multiline comment put manually '#' to all lines or select all text & use ctrl + \ ( forward slash)
15 Cell execution shift + Enter shift + Enter
16 Cell execution Ctrl + Enter Ctrl + Enter
17 Cell execution Alt + Enter Alt + Enter
18 Variable Rules to define
19 Variable Type Local & global
20 Variable value assign Same value to multiple variable
21 Variable value assign multiple value to multiple variable
22 Datatypes types
23 Datatypes int ineger value
24 Datatypes float
25 Datatypes complex contaion real & imaginary part
26 Datatypes string contain digit
27 Casting int int to - float, str, complex
28 Casting float int to - float, str, complex
29 Casting complex complex to - int, float, str
30 Casting str str to - int, float, complex
31 String Single line "Samarth" or 'Samarth'
32 String Multiline """ """ or ''' '''
33 String Formatting f string
34 String Formatting % format
35 String Formatting .format
36 String Escape characters start with \ ( contain \ , ', \n, \t )
37 String Escape characters Use in - windows, linux ( // )
38 String Escape characters what is r string - raw string ( r" ")
39 String Indexing Postive indexing
40 String Indexing Negative indexing
41 String Slicing Positive slicing
42 String Slicing Negative slicing
43 String Concatenation str1 + str 2 + str 3
44 String Multiplication "str" * 5
45 String Function Function syntax >> string.function()
46 String Function capitalize
47 String Function upper
48 String Function lower
49 String Function title
50 String Function swapcase
51 String Function lstrip
52 String Function rstrip
53 String Function strip
54 String Function replace
count ( substring, start index,
55 String Function
end index)
index ( substring, start index, end
56 String Function
index)
57 String Function find(" ")
58 String Function split ( str to list conversion)
59 String Function casefold
60 String Function endswith
61 String Function startswith
62 String Function isalunum
63 String Function isalpha
64 String Function isdecimal
65 String Function isdigit
66 String Function isnumeric
67 String Function isupper
68 String Function islower
69 String Function istitle
70 String Function isspace
71 String Function zfill
72 String Function center
73 String unicode universal code \\un0030
74 If else Defination syntax
75 If else if
76 If else if > elif
77 If else if > elif > elif
78 If else if > elif > else
79 If else if > elif > elif > elif > else
80 If else if > else
81 If else Nasted if else if else under if else
82 If else short hand if
83 If else short hand if else
84 If else pass
85 If else continue
86 If else break
87 User input by default str came, for another need to start with eval
88 Operator Comparison a=b
89 Operator Comparison a!= b
90 Operator Comparison a>b
91 Operator Comparison a<b
92 Operator Comparison a >=b
93 Operator Comparison a <=b
94 Operator Logical and
95 Operator Logical or
96 Operator Logical not
97 Operator Assignment a == 5
98 Operator Assignment a += 5
99 Operator Assignment a -= 6
100 Operator Assignment a *=5
101 Operator Assignment a /=5
102 Operator Assignment a //=5
103 Operator Assignment a%5
104 Operator Assignment a ** 5
105 Operator Arithmetic +
106 Operator Arithmetic -
107 Operator Arithmetic *
108 Operator Arithmetic /
109 Operator Arithmetic //
110 Operator Arithmetic %
111 Operator Arithmetic **
112 Operator Membership in
113 Operator Membership not in
114 Operator Identity is
115 Operator Identity is not
116 Operator Bitwise &
117 Operator Bitwise |
118 Operator Bitwise ^
119 Operator Bitwise >> 2
120 Operator Bitwise << 2
121 Operator Bitwise ~ complement
122 Operator Binary
123 Operator hex
124 Operator oct
125 General [] list , index, slicing
126 General {} string formatting, set, frozenset, dict
127 General () tuple, built in function
128 List Defination
129 List Properties
130 List Indexing
131 List Slicing
132 List Access by loop
133 List Range
134 List Function append
135 List Function extend
136 List Function insert ( index, value)
137 List Function del
138 List Function remove
139 List Function pop
140 List Function clear
141 List Function sort >> assending, desending
142 List Function sorted
143 List Function reverse
144 List Function reversed
145 List Function index
146 List Function count
147 List Function copy
148 List Function max
149 List Function min
150 List Function sum
151 List Function avg ( sum / len)
152 List Function deep copy
153 List Function join
154 List Multiplication list * 5
155 General Conversion list, tuple, set, string among themselves
156 Tuple Defination
157 Tuple Properties
158 Tuple Indexing
159 Tuple Slicing
160 Tuple - Function del
161 Tuple - Function index
162 Tuple - Function count
163 Tuple - Function copy
164 Tuple - Function deepcopy
165 Tuple - Function sorted
166 Tuple - Function reversed
167 Tuple - Function min
168 Tuple - Function max
169 Tuple - Function sum
170 Tuple - Function avg(sum/len)
171 Tuple Concatenation tup1 + tup2 + tup 3
172 Tuple Multiplication tup * 5
173 General General Diff between list & tuple
174 For loop Enumerate syntax
175 For loop Defination syntax
176 For loop pass
177 For loop continue
178 For loop break
179 For loop for else
180 For loop Factorial
181 For loop Prime number
182 For loop Fibonacci series
183 For loop Nasted for loops
184 For loop Pattern
185 For loop while loop
186 Set properties
187 Set conversion string, tuple, list with each other
188 Set index not applicable
189 Set count not applicable
190 Set - Function add()
191 Set - Function update()
192 Set - Function union()
193 Set - Function del
194 Set - Function remove
195 Set - Function discard
196 Set - Function pop
197 Set - Function clear
198 Set - Function intersection
199 Set - Function intersection_update
200 Set - Function difference
201 Set - Function difference_update
202 Set - Function symmetric_difference
203 Set - Function symmetric_difference_update
204 Set - Function issubset
205 Set - Function issuperset
206 Set - Function isdisjoint
207 Set - Function copy
208 Frozenset Properties
209 Frozenset - Function union
210 Frozenset - Function intersection
211 Frozenset - Function difference
212 Frozenset - Function issubset
213 Frozenset - Function issuperset
214 Frozenset - Function isdisjoint
1) can be use set compression also same syntax
215 List comprehension syntax
2) can use tuple comprehension also, but need to unpack by list or set
216 Dict Properties
217 Dict key
218 Dict value
219 Dict access char
220 Dict - Function get
221 Dict - Function keys
222 Dict - Function value
223 Dict - Function item
224 Dict - Function enumerate
225 Dict - Function dict.update dict.update({ input should be given in dict only})
can delete complete dict
226 Dict - Function del
by accessing any char , can delete that char from dict
227 Dict - Function pop
228 Dict - Function popitem
229 Dict - Function clear
230 Dict General conversion dict, str, list,set,frozenset, tuple to each other
231 Dict General square, cube of first n numbers
232 Dict General Ascii value A to Z with dict
233 Dict Enumerate enumerate fuction in dict
234 Dict fromkeys fromkeys
235 Dict zip zip >> zip is applicable to all data types
236 Dict setdefault
237 Dict copy
238 Dict nasted dict
239 Dict sorting
240 Dict sorted sorted >> dict.keys, dict.values, dict.items
241 Dict Function sorting of dict by using for loop & using count function
242 Dict Function acceess dict by its value >> by using for loop & if condition
access char more than two value for a,b,c,d in list1:
243
General in tuple print(a,b,c,d)
244 Boolean TRUE
245 Boolean FALSE
246 Boolean in
247 Boolean not in
248 Boolean comparision operator
249 Boolean membership operator
250 Function type user defined, built in user >> programmer
251 Function properties
252 Function identifire
253 Function rules to define
254 Function dynamic
255 Function local
256 Function arguments parameter >> define, arguments >> end , calling
257 Function return to get output
258 Function return properties, >> can not use two return fuction
259 Function Factorial
260 Function General difference between global & return
261 Function arguments type >> positional, default, arbitary,keyword
262 Function arguments positional
263 Function arguments default
264 Function arguments arbitary
265 Function arguments keyword
defination - when function call itself again is called recurssive
266 Function Recusrsive two condition 1 - terminated condition in if statement
2 - in else statement provided main condition
factorial - multiplication with previous one fact till 1 come
267 Function Recusrsive 1) if ==1 return 1
2) else return n * fact (n-1)
fibonassi series - sum of privious two numbers
268 Function Recusrsive 1 - if condition <=1 return n ( for 0 & 1)
2 - else return fib ( n-1) + fib ( n-2)
sum of natural numbers
269 Function Recusrsive 1 - if condition - n = 1 return 1
2 else return n + sum (n-1)
270 Lambda defination , properties syntax
271 Lambda properties
272 Lambda syntax
273 Lambda arguments
274 Lambda expression
275 Lambda data type used in lambda
276 Built in Function int
277 Built in Function float
278 Built in Function complex
279 Built in Function str
280 Built in Function tuple
281 Built in Function set
282 Built in Function frozenset
283 Built in Function bool
284 Built in Function range
285 Built in Function print
286 Built in Function len
287 Built in Function max
288 Built in Function min
289 Built in Function sum
290 Built in Function sorted
291 Built in Function reversed
292 Built in Function input
293 Built in Function eval
294 Built in Function enumerate
295 Built in Function chr
296 Built in Function ord
297 Built in Function type
298 Built in Function zip zip ( name, score) ==> packed object, need to unpack it by list or tuple
1) it returns only true value
2) filter syntax ==> ( function,iterable)
299
3) must have condition
Built in Function filter 4) only filter give objest, need to unpack it
1) Syntax ==> map(function, iterable)
2) when we use conditional statement, output come in boolean
300
3) map is use when required exact opeartion on each of the element
Built in Function map ==>>> map is a functinal statement & filter is a conditional statement
>> not built in but can be import
301
Built in Function reduce use when need to do in that data type
True >> all elements are ture , empty function
302
Built in Function all False >> if any one elt is flase, empty datatype as a element
True >>whe natleast one element is true
303
Built in Function any False >> if all elements are false, for empty iterable
304 Built in Function chr
305 Built in Function ord
306 Built in Function bin
True >>
307
Built in Function bool False >> zero, empty,condition is false
1) return only true value (positive value)
308
Built in Function abs 2) if number is complex provide its magnitude
309 Built in Function dir list of valid attributes ( variable, functions, classmates) of an object
310 Built in Function enumerate index , its value
311 Built in Function range
312 Built in Function print
313 Built in Function input
314 Built in Function eval
315 Module Defination .py file
316 Module import
317 Module as raname
318 Module from
319 Module import method import module name
320 Module import method import module1,modue2,module3
321 Module import method from module import attribute
322 Module import method from module import *
323 Module import from VS import calculation
324 Module import from VS calculation .variable
325 Module import from VS calculation.function()
326 Module import from VS calculation.class
327 IDE Defination Integrated development environment
328 IDE JN
329 IDE VS code
330 IDE Pycharm
331 IDE Spyder
332 IDE Subline
333 IDE Jupyter lab
334 VS code theme change
335 VS code New folder creation, open
336 VS code Run ways to run a program
337 Module name original name & its name difference
338 Module auto execute how to avoid it >> if condition
339 File handling write w'
340 File handling write x'
341 File handling append
342 File handling read
343 File handling readline
344 File handling readlines
345 File handling with statement
346 File handling JSON file
347 File handling JSON file creation
348 File handling JSON file open
349 File handling MS model create & open
350 OS module rename
351 OS module move
352 OS module exists
353 OS module mkdir
354 OS module mkdirs
355 OS module rmdir
356 OS module shutil.rmtree
357 OS module os.listdir
358 OS module os.getcwd()
359 OS module os.chdir()
360 Date time time.time() for current time
361 Date time time.perf.counter()
362 Date time time.sleep()
363 Date time datetime.datetime.today()
364 Date time datetime.datetime.now()
365 Date time access date only
366 Date time access month only
367 Date time access day only
368 Date time access year only
369 Date time access hour only
370 Date time access minute only
371 Date time access microsecond only
372 Date time Time delta
373 Date time Time delta
374 Date time strftime string from time object
375 Date time %y 22
376 Date time %Y 2022
377 Date time %m 1,2,3,4
378 Date time %b jan,feb,mar
379 Date time %B January, February
380 Date time %d day 17,18
381 Date time %A Monday
382 Date time %a mon
383 Date time %w mon - 1, tue - 2
384 Date time %j Day number from year
385 Date time %U Week number of the year
386 Date time %p AM/PM
387 Date time strptime
388 Date time strptime
389 Exception handling Error type Syntax error & runtime error
390 Exception handling Runtime error
391 Exception handling Runtime error value error
392 Exception handling Runtime error Name error
393 Exception handling Runtime error Type error
394 Exception handling Runtime error Zero division error
395 Exception handling Runtime error File not found error
396 Exception handling Runtime error File exist error
397 Exception handling Runtime error Index error
398 Exception handling Runtime error Attribute error
399 Exception handling Try except block
400 Exception handling try
401 Exception handling except
402 Exception handling traceback traceback.print_exc()
403 Exception handling try except else try
404 Exception handling except
405 Exception handling else
406 Exception handling finally
407 Exception handling raise raise keyword is used ti raise an error
408 Exception handling error printing except FileExistsError as err
409 Oops Defination
410 Oops object
411 Oops class
412 Oops identifieirs rules
413 Oops self
414 Oops class stucture
415 Oops arguments directly on class
416 Oops self variable
417 Oops __init__
418 Oops pass arguments on class
419 Oops pass arguments on each method
pass arguments on each method
420 Oops
from one method
421 Oops Inheritance
422 Oops Base class
423 Oops Derived class
424 Oops Types
425 Oops Single
426 Oops Multilevel
427 Oops Multiple
428 Oops Hierarchical
429 Oops Hibrid
430 Oops Encapsulation
431 Oops Encapsulation with inheritance
432 Oops Name Magling method
433 Oops Polymorphism
434 Oops Polymorphism with inheritance
435 Oops Overriding method
436 Oops Overloading
437 Oops Abstraction
438 Iterators Defination
439 Iterators __iter__()
440 Iterators __next__()
441 Iterators __method__
442 Iterators __method
443 Iterators method / _method
444 Iterators dir(a)
445 Iterators two method of call
446 Iterators two method of call
447 Iterators class use
448 Iterators class use
449 Iterators complete class
450 Generators defination
451 Generators why yield
452 Generators object
453 Generators unlock object
454 Generators fib
455 Decorators defination
456 Decorators outer function
457 Decorators inner function
458 Decorators at hello decorator
459 Decorators at abstraction
460 Decorators time complexicity

You might also like