Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
41fe4b7
Initial commit
Mofazzal-Hossain-Evan Oct 7, 2025
13b9061
1-5 Control Flow B
Mofazzal-Hossain-Evan Oct 7, 2025
ba01922
Nested Comprehensions and Conditional Logic
Mofazzal-Hossain-Evan Oct 9, 2025
4e4640c
Reinitialize repo with full folder structure
Mofazzal-Hossain-Evan Oct 7, 2025
8185893
Update Week_1
Mofazzal-Hossain-Evan Oct 7, 2025
355dd8e
Conditionals statement in Python
Mofazzal-Hossain-Evan Oct 14, 2025
f8eba32
2.4 Break and Continue Statements in Python
Mofazzal-Hossain-Evan Oct 16, 2025
cb08e0a
Mod_2
Mofazzal-Hossain-Evan Oct 18, 2025
5c68af8
Reset repo: remove all old files and upload fresh local version
Mofazzal-Hossain-Evan Oct 18, 2025
2e5f7b1
Delete Python_For_ML directory
Mofazzal-Hossain-Evan Oct 18, 2025
cf171eb
reuploadManually
Mofazzal-Hossain-Evan Oct 18, 2025
02bcfb4
update
Mofazzal-Hossain-Evan Oct 18, 2025
89108ad
Mod_2_quize
Mofazzal-Hossain-Evan Oct 18, 2025
53589fb
3.2 String , Indexing and Slicing
Mofazzal-Hossain-Evan Oct 19, 2025
778f1bf
3.3 String Methods
Mofazzal-Hossain-Evan Oct 20, 2025
5730636
3.4 String Splitting Joining and Formatting
Mofazzal-Hossain-Evan Oct 20, 2025
c6310fd
200~3.5 List and List Methods
Mofazzal-Hossain-Evan Oct 21, 2025
71d38f1
3.6 List as Stack and Queue
Mofazzal-Hossain-Evan Oct 22, 2025
3bf40f0
3.7 List Comprehension
Mofazzal-Hossain-Evan Oct 22, 2025
e111c67
3.8 List Comprehension with List of String
Mofazzal-Hossain-Evan Oct 22, 2025
6984dd2
5.1 Tuples in Python
Mofazzal-Hossain-Evan Oct 26, 2025
06ad6b7
5.2 Sets in Python
Mofazzal-Hossain-Evan Oct 26, 2025
fde6904
5.3 Dictionary Basics
Mofazzal-Hossain-Evan Oct 26, 2025
b82d597
5.4 Dictionary Methods and 5.5 Dictionary View Methods
Mofazzal-Hossain-Evan Oct 26, 2025
6d6501a
5.6 Dictionary Comprehension
Mofazzal-Hossain-Evan Oct 27, 2025
b18b2cd
5.7 Problem solving with In Built Structures
Mofazzal-Hossain-Evan Oct 27, 2025
72d5f76
init
Mofazzal-Hossain-Evan Oct 27, 2025
4bc3534
6.2 Function Parameters
Mofazzal-Hossain-Evan Oct 27, 2025
f8a52de
6.3 Function Return Types
Mofazzal-Hossain-Evan Oct 27, 2025
5290b01
Delete Python_For_ML/Week_2/Mod_6 directory
Mofazzal-Hossain-Evan Oct 27, 2025
60de9d2
Add files via upload
Mofazzal-Hossain-Evan Oct 27, 2025
fc0a322
Initial commit
Mofazzal-Hossain-Evan Oct 27, 2025
c3a61b4
Create Mod_7
Mofazzal-Hossain-Evan Oct 27, 2025
85f60b5
6.5 Lambda function in Python
Mofazzal-Hossain-Evan Oct 28, 2025
3ee662a
28_Oct
Mofazzal-Hossain-Evan Oct 28, 2025
752e0cd
Quick update for graph - Oct 28, 2025
Mofazzal-Hossain-Evan Oct 28, 2025
b466591
6.6 Map function in Pytho
Mofazzal-Hossain-Evan Oct 28, 2025
63e97ff
6.4 Iterator and Generator
Mofazzal-Hossain-Evan Oct 28, 2025
e7f2ac4
6.7 Filter Function in Python
Mofazzal-Hossain-Evan Oct 28, 2025
c7926cc
6.8 Reduce function in Python
Mofazzal-Hossain-Evan Oct 28, 2025
7d7a2ba
'7.1 File Handling Basics.ipynb'
Mofazzal-Hossain-Evan Oct 28, 2025
0872432
Created using Colab
Mofazzal-Hossain-Evan Oct 28, 2025
a1d5b04
Created using Colab
Mofazzal-Hossain-Evan Oct 28, 2025
e2a3583
Updated login feature
Mofazzal-Hossain-Evan Oct 28, 2025
7d7bb9e
Delete Python_For_ML/Week_2/Mod_7/7.2 File Read.ipynb
Mofazzal-Hossain-Evan Oct 28, 2025
e56be0a
7.4 File Pointer.ipynb
Mofazzal-Hossain-Evan Oct 29, 2025
c3a5000
7.5 Practice Problems on File
Mofazzal-Hossain-Evan Oct 29, 2025
15f54db
Testing forked repo contribution
Mofazzal-Hossain-Evan Oct 29, 2025
01eb7c4
Mod_*
Mofazzal-Hossain-Evan Oct 29, 2025
d7811d8
CodeForce
Mofazzal-Hossain-Evan Oct 30, 2025
e687c59
Friday
Mofazzal-Hossain-Evan Oct 31, 2025
9307fa4
Test commit on master
Mofazzal-Hossain-Evan Oct 31, 2025
b41ff7e
10.2 ndarray and its attributes.ipynb
Mofazzal-Hossain-Evan Oct 31, 2025
e3ede5f
min_max
Mofazzal-Hossain-Evan Oct 31, 2025
51a6089
10.3 Ndarray Data Type
Mofazzal-Hossain-Evan Nov 1, 2025
d929f42
10.4 ndarray creation from Existing data.ipynb
Mofazzal-Hossain-Evan Nov 1, 2025
35d6771
10.5 ndarray creation from scratch.ipynb
Mofazzal-Hossain-Evan Nov 1, 2025
af7eb83
Mod 10 done
Mofazzal-Hossain-Evan Nov 2, 2025
b8a5d19
11.4 Numpy Broadcasting
Mofazzal-Hossain-Evan Nov 4, 2025
3ba7498
added Module 14
minhajadil Nov 1, 2025
2a38b4e
Add files via upload
minhajadil Nov 1, 2025
be53e4f
Add files via upload
minhajadil Nov 2, 2025
44bd72f
Added files of Module 15
minhajadil Nov 2, 2025
8737b41
Add files via upload
minhajadil Nov 3, 2025
ccfada6
Delete Practice Day.csv
minhajadil Nov 3, 2025
bbf9c1e
Add files via upload
minhajadil Nov 3, 2025
74e580d
11.6 ndarray Sorting
Mofazzal-Hossain-Evan Nov 4, 2025
4aa3d66
11.7 ndarray Searching
Mofazzal-Hossain-Evan Nov 4, 2025
86470e7
Mod_11 done
Mofazzal-Hossain-Evan Nov 4, 2025
1bb9031
Mod_12
Mofazzal-Hossain-Evan Nov 5, 2025
1ce053a
Merge branch 'phitronio:main' into master
Mofazzal-Hossain-Evan Nov 5, 2025
c3e8cec
Conceptual Session 01
Mofazzal-Hossain-Evan Nov 8, 2025
a393610
14.1 Filtering Based on String
Mofazzal-Hossain-Evan Nov 10, 2025
96b52e6
Mod 14
Mofazzal-Hossain-Evan Nov 12, 2025
b24f403
Mod_15
Mofazzal-Hossain-Evan Nov 13, 2025
a03da8c
Mod_16
Mofazzal-Hossain-Evan Nov 14, 2025
b58c2ea
s1
Mofazzal-Hossain-Evan Nov 17, 2025
9a130b3
CS02
Mofazzal-Hossain-Evan Nov 19, 2025
c9d7740
Conceptual Session 01
Mofazzal-Hossain-Evan Nov 21, 2025
6d1f5ca
Conceptual Session 02
Mofazzal-Hossain-Evan Nov 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/Python-for-ML.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"J. Average","group":"Codeforces - Sheet #5 (Functions)","url":"https://codeforces.com/group/MWSDmqGsZm/contest/223205/problem/J","interactive":false,"memoryLimit":256,"timeLimit":1000,"tests":[{"input":"3\n1.0 2.0 5.0\n","output":"2.6666667\n","id":1762592354387},{"id":1762592354388,"input":"4\n1.0 7.0 4.0 9.0\n","output":"5.2500000\n"}],"testType":"single","input":{"type":"stdin"},"output":{"type":"stdout"},"languages":{"java":{"mainClass":"Main","taskClass":"JAverage"}},"batch":{"id":"cc64f10e-50cf-4453-a7fc-969c1ef5b06c","size":1},"srcPath":"c:\\Users\\evan\\Documents\\GitHub\\Python-for-ML\\Python_For_ML\\J_Average.py"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"L. New Array","group":"Codeforces - Sheet #5 (Functions)","url":"https://codeforces.com/group/MWSDmqGsZm/contest/223205/problem/L","interactive":false,"memoryLimit":256,"timeLimit":1000,"tests":[{"input":"2\n1 2\n3 4\n","output":"3 4 1 2\n","id":1762595272645}],"testType":"single","input":{"type":"stdin"},"output":{"type":"stdout"},"languages":{"java":{"mainClass":"Main","taskClass":"LNewArray"}},"batch":{"id":"a1ab4f10-761a-4c80-acb0-2698c2312322","size":1},"srcPath":"c:\\Users\\evan\\Documents\\GitHub\\Python-for-ML\\Python_For_ML\\L_New_Array.py"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"Q. Digits","group":"Codeforces - Sheet #2 (Loops)","url":"https://codeforces.com/group/MWSDmqGsZm/contest/219432/problem/Q","interactive":false,"memoryLimit":256,"timeLimit":1000,"tests":[{"id":1760759262029,"input":"4\n121\n39\n123456\n1200\n","output":"1 2 1\n9 3\n6 5 4 3 2 1\n0 0 2 1\n"}],"testType":"single","input":{"type":"stdin"},"output":{"type":"stdout"},"languages":{"java":{"mainClass":"Main","taskClass":"QDigits"}},"batch":{"id":"64392b92-7c3e-4f9a-81ed-f0f9c767b917","size":1},"srcPath":"c:\\Users\\evan\\OneDrive\\Documents\\GitHub\\Phitron_ai\\Python_For_ML\\Q_Digits.py"}
8 changes: 8 additions & 0 deletions Python_For_ML/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Python_For_ML/.idea/Python_For_ML.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Python_For_ML/.idea/dictionaries/project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Python_For_ML/.idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Python_For_ML/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Python_For_ML/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Python_For_ML/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

233 changes: 233 additions & 0 deletions Python_For_ML/Assignment_1.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
{
"cells": [
{
"cell_type": "code",
"id": "initial_id",
"metadata": {
"collapsed": true,
"ExecuteTime": {
"end_time": "2025-10-30T13:14:39.962846Z",
"start_time": "2025-10-30T13:14:28.132959Z"
}
},
"source": [
"#1\n",
"\n",
"\n",
"array = list(map(int, input().split()))\n",
"\n",
"even_nums = list(filter(lambda x: x % 2 == 0, array))\n",
"\n",
"print(\"Only Even Numbers\",even_nums)\n"
],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Only Even Numbers [6, 8, 10]\n"
]
}
],
"execution_count": 6
},
{
"metadata": {},
"cell_type": "markdown",
"source": "",
"id": "6a360131ffc927a4"
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-10-30T13:15:59.017919Z",
"start_time": "2025-10-30T13:15:54.337753Z"
}
},
"cell_type": "code",
"source": [
"#2\n",
"def safe_divide(a, b):\n",
" try:\n",
" result = a / b\n",
" return result\n",
" except ZeroDivisionError:\n",
" return \"Division by zero\"\n",
"\n",
"\n",
"a, b = map(int, input().split())\n",
"\n",
"\n",
"print(safe_divide(a, b))\n"
],
"id": "99cb683689bdbb56",
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Division by zero\n"
]
}
],
"execution_count": 7
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-10-30T14:39:34.269634Z",
"start_time": "2025-10-30T14:39:29.832975Z"
}
},
"cell_type": "code",
"source": [
"import math\n",
"\n",
"class Shape:\n",
" def area(self):\n",
" return 0\n",
"\n",
"class Rectangle(Shape):\n",
" def __init__(self, w, h):\n",
" self.w = w\n",
" self.h = h\n",
"\n",
" def area(self):\n",
" return self.w * self.h\n",
"\n",
"class Circle(Shape):\n",
" def __init__(self, r):\n",
" self.r = r\n",
"\n",
" def area(self):\n",
" return math.pi * self.r * self.r\n",
"\n",
"\n",
"data = input().split()\n",
"shape_type = data[0]\n",
"\n",
"if shape_type == \"Rectangle\":\n",
" w = float(data[1])\n",
" h = float(data[2])\n",
" obj = Rectangle(w, h)\n",
"\n",
"\n",
" print(\"The rectangle area of given data:{:.2f}\".format(obj.area()))\n",
"\n",
"elif shape_type == \"Circle\":\n",
" r = float(data[1])\n",
" obj = Circle(r)\n",
"\n",
"\n",
" print(\" The circle area of given data: {:.2f}\".format(obj.area()))\n",
"\n",
"else:\n",
" print(\"Unknown Shape\")\n"
],
"id": "7dd1c5255eee6d4d",
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The rectangle area of given data:50.00\n"
]
}
],
"execution_count": 29
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-10-30T14:12:25.090600Z",
"start_time": "2025-10-30T14:12:17.168443Z"
}
},
"cell_type": "code",
"source": [
"\n",
"sentence = input().split()\n",
"\n",
"longest = sentence[0]\n",
"\n",
"\n",
"for word in sentence:\n",
" if len(word) > len(longest):\n",
" longest = word\n",
"\n",
"print(longest)\n"
],
"id": "6ba8ea1347d539af",
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"tie\n"
]
}
],
"execution_count": 16
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-10-30T14:38:18.645881Z",
"start_time": "2025-10-30T14:38:14.815180Z"
}
},
"cell_type": "code",
"source": [
"import math\n",
"\n",
"\n",
"my_number = int(input().strip())\n",
"original = my_number\n",
"\n",
"def is_strong(number):\n",
" digit_sum = 0\n",
" for digit in str(number):\n",
" digit_sum += math.factorial(int(digit))\n",
" return digit_sum == original\n",
"\n",
"\n",
"if is_strong(my_number):\n",
" print(\"Strong Number\")\n",
"else:\n",
" print(\"Not Strong Number\")\n"
],
"id": "f8d51c72a722274f",
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Not Strong Number\n"
]
}
],
"execution_count": 26
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
12 changes: 12 additions & 0 deletions Python_For_ML/J_Average.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from functools import reduce

def find_average(arr):
total = reduce(lambda x, y: x+y, arr)
return total / len(arr)

n = int(input())
A = list(map(float, input().split()))

average = find_average(A)

print(f"{average:.7f}")
9 changes: 9 additions & 0 deletions Python_For_ML/L_New_Array.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
def new_array(A, B):
return B +A
n = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))

C= new_array(A , B)

print(*C)
11 changes: 11 additions & 0 deletions Python_For_ML/Q_Digits.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
t = int(input())

for i in range(t):
number = int (input())
if number ==0 :
print(0)
continue
while number > 0 :
print(number%10, end=" ")
number//=10
print()
Loading