Skip to content

Commit 7a427e8

Browse files
committed
topics/folders added as a todo list, later to be done
1 parent 312bdbf commit 7a427e8

18 files changed

Lines changed: 265 additions & 0 deletions

File tree

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Python Code Notes
2+
3+
A repository for Python code snippets, notes, and best practices. This collection covers essential Python concepts, syntax, and common libraries to help me for quick reference, learning, and keeping notes.
4+
5+
---
6+
7+
## Topics
8+
9+
1. **Core Python Syntax**
10+
- Variables, Data Types, and Type Conversion
11+
- Operators
12+
- Conditionals and Loops
13+
14+
2. **Functions and Lambdas**
15+
- Defining Functions
16+
- Lambda Expressions
17+
18+
3. **Data Structures**
19+
- Lists, Tuples, Sets, Dictionaries
20+
- List and Dictionary Comprehensions
21+
22+
4. **Modules and Packages**
23+
- Importing Modules
24+
- Custom Modules
25+
26+
5. **Object-Oriented Programming (OOP)**
27+
- Classes, Inheritance, Encapsulation, Polymorphism
28+
29+
6. **File Handling**
30+
- Reading, Writing, JSON and CSV
31+
32+
7. **Error Handling**
33+
- Exception Handling and Custom Exceptions
34+
35+
8. **Advanced Python Concepts**
36+
- Generators, Context Managers, Regular Expressions
37+
38+
---
39+
40+
## Setup Instructions
41+
42+
Clone the repository:
43+
44+
git clone https://github.com/masumkhan081/python-code-notes.git

ds-dictionaries/ind.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
msg = "hi, how are u ?"
4+
5+
print(msg)
6+
7+
fruits = ["apple", "banana", "cherry"]
8+
for x in fruits:
9+
print(x)
10+
11+
12+
thistuple = ("apple", "banana", "cherry")
13+
print(thistuple)

ds-lists/ind.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
msg = "hi, how are u ?"
4+
5+
print(msg)
6+
7+
fruits = ["apple", "banana", "cherry"]
8+
for x in fruits:
9+
print(x)
10+
11+
12+
thistuple = ("apple", "banana", "cherry")
13+
print(thistuple)

ds-sets/ind.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
msg = "hi, how are u ?"
4+
5+
print(msg)
6+
7+
fruits = ["apple", "banana", "cherry"]
8+
for x in fruits:
9+
print(x)
10+
11+
12+
thistuple = ("apple", "banana", "cherry")
13+
print(thistuple)

ds-tuples/ind.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
msg = "hi, how are u ?"
4+
5+
print(msg)
6+
7+
fruits = ["apple", "banana", "cherry"]
8+
for x in fruits:
9+
print(x)
10+
11+
12+
thistuple = ("apple", "banana", "cherry")
13+
print(thistuple)

error/ind.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
msg = "hi, how are u ?"
4+
5+
print(msg)
6+
7+
fruits = ["apple", "banana", "cherry"]
8+
for x in fruits:
9+
print(x)
10+
11+
12+
thistuple = ("apple", "banana", "cherry")
13+
print(thistuple)

file-handling/ind.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
msg = "hi, how are u ?"
4+
5+
print(msg)
6+
7+
fruits = ["apple", "banana", "cherry"]
8+
for x in fruits:
9+
print(x)
10+
11+
12+
thistuple = ("apple", "banana", "cherry")
13+
print(thistuple)

function/ind.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
msg = "hi, how are u ?"
4+
5+
print(msg)
6+
7+
fruits = ["apple", "banana", "cherry"]
8+
for x in fruits:
9+
print(x)
10+
11+
12+
thistuple = ("apple", "banana", "cherry")
13+
print(thistuple)

generator/ind.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
msg = "hi, how are u ?"
4+
5+
print(msg)
6+
7+
fruits = ["apple", "banana", "cherry"]
8+
for x in fruits:
9+
print(x)
10+
11+
12+
thistuple = ("apple", "banana", "cherry")
13+
print(thistuple)

lib-matpotlib-plotting/ind.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
msg = "hi, how are u ?"
4+
5+
print(msg)
6+
7+
fruits = ["apple", "banana", "cherry"]
8+
for x in fruits:
9+
print(x)
10+
11+
12+
thistuple = ("apple", "banana", "cherry")
13+
print(thistuple)

0 commit comments

Comments
 (0)