0% found this document useful (0 votes)
2 views2 pages

Python Notes

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

Python Notes

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd

Python Notes: Basics to Advanced

Variables
int, float, str, bool. Example: a=10, b=3.14, c='Hello'

Input/Output
input(), print()

Operators
Arithmetic, Comparison, Logical

Conditions
if, elif, else

Loops
for, while

Functions
def function_name():

Strings
Indexing, slicing, methods

Lists
append, remove, sort

Tuples
Immutable collections

Sets
Unique values

Dictionaries
Key-value pairs

File Handling
open, read, write

Exception Handling
try, except
OOP
Classes, Objects, Inheritance

Lambda
Anonymous functions

Modules
import math

DSA Practice
Factorial, Fibonacci, Searching, Sorting

Projects
Calculator, To-Do App, Expense Tracker, Weather App

You might also like