PYTHON LOOP BASIC(BEST PRACTICE SET EVER)



Python Loop Mastery:

🔹 Level 1: Basic Loop Syntax

1.for loop with range()

Ex:

📌 Syntax:

for i in range(5):
print(i)

🧠 Output:

0  
1  
2  
3  
4
  •       

2.while loop

Ex:

n = 0
while n < 5:
    print(n)
    n += 1

Output:

0  
1  
2  
3  
4
         


3.loop variables (i, j)

Basic i loop variable

📌 Syntax:

for i in range(1, 6): print("Current value of i:", i)

🧠 Output:

Current value of i: 1 Current value of i: 2 Current value of i: 3 Current value of i: 4 Current value of i: 5


4.break, continue

📌Syntex
for i in range(1,11):
    if i == 3:
        break
    print(i)
Output:
1
2
 
for j in range(1,9):
    if j == 6:
        continue
    print(j)

Output:
1
2
3
4
5
7
8


🔹 Level 2: Loop on Data Structures

students = ["Shahed", "Naim", "Rafi", "Jannat"]

for name in students:
    print("Student name:", name)
🧠 Output:

Student name: Shahed  
Student name: Naim  
Student name: Rafi  
Student name: Jannat  

2.Loop over string:
letter = "Automation"
for i in letter:
    print(i)
🖨️ Output:

A
u
t
o
m
a
t
i
o
n

Loop over Tuple

colors = ("red", "green", "blue") for color in colors: print(color)

🧠 Output:

red green blue

🔹 Loop over Dictionary (keys/values)

car = {
    "brand": "Toyota",
    "model": "Corolla",
    "year": 2020
}
for i,j in car.items():
    print(i,":",j)
Output:
brand : Toyota
model : Corolla
year : 2020
🔹 Level 3: Loop with Conditions
1.if/else inside loops:
for i in range(1,11):
    if i > 0:
        tag="POSITIVE NUMBERS"
    else:
        tag="NEGATIVE NUMBERS"
print(tag)
Output:
"POSITIVE NUMBERS"
2.even/odd check:
for i in range(1, 11):
    if i % 2 == 0:
        print(i, "is Even")
    else:
        print(i, "is Odd")
🧠 Output:

1 is Odd  
2 is Even  
3 is Odd  
...  
10 is Even

3.use of break/continue with conditions
`break`:
for i in range(1, 11):
    if i == 6:
        break
    print("Number:", i)
```

🧠 Output:

```
Number: 1  
Number: 2  
Number: 3  
Number: 4  
Number: 5
continue`:
for i in range(1, 11):
    if i in [3, 6, 9]:
        continue
    print("Number:", i)
```

🧠 Output:

```
Number: 1  
Number: 2  
Number: 4  
Number: 5  
Number: 7  
Number: 8  
Number: 10
while Loop with `break`:

```python
i = 1
while i <= 10:
    if i == 6:
        break
    print("Number:", i)
    i += 1

🧠 Output:
Number: 1  
Number: 2  
Number: 3  
Number: 4  
Number: 5
🔍 While Loop with `continue`:

i = 1
while i <= 10:
    if i in [3, 6, 9]:
        i += 1
        continue
    print("Number:", i)
    i += 1
🧠 Output:
Number: 1  
Number: 2  
Number: 4  
Number: 5  
Number: 7  
Number: 8  
Number: 10


🔹 Level 4: Nested Loops

1.Loop inside another loop:
#📌Syntex:
for i in range(1, 4):  # Outer loop
    for j in range(1, 4):  # Inner loop
        print(f"Row {i}, Column {j}")
🧠 Output:

Row 1, Column 1  
Row 1, Column 2  
Row 1, Column 3  
Row 2, Column 1  
Row 2, Column 2  
Row 2, Column 3  
Row 3, Column 1  
Row 3, Column 2  
Row 3, Column 3

2.Multiplication table:

for i in range(1,5):
    print(f"Mutiplication table of {i}")
    for j in range(1,11):
        print(f"{i}X{j}={i*j}")
    print()
Output:
1X1=1
1X2=2
1X3=3
1X4=4
1X5=5
1X6=6
1X7=7
1X8=8
1X9=9
1X10=10

Mutiplication table of 2
2X1=2
2X2=4
2X3=6
2X4=8
2X5=10
2X6=12
2X7=14
2X8=16
2X9=18
2X10=20

Mutiplication table of 3
3X1=3
3X2=6
3X3=9
3X4=12
3X5=15
3X6=18
3X7=21
3X8=24
3X9=27
3X10=30

Mutiplication table of 4
4X1=4
4X2=8
4X3=12
4X4=16
4X5=20
4X6=24
4X7=28
4X8=32
4X9=36
4X10=40




🔹 Level 5: Loop Pattern:

    for j in range(1,i+1):
        print(j,end=" ")
    print()
Output:
1 2 
1 2 3 
1 2 3 4 
1 2 3 4 5 

Star pattern:

for i in range(1,6):
    for j in range(1,i+1):
        print("*",end=" ")
    print()
Output:
* * 
* * * 
* * * * 
* * * * * 
2.Number patterns
for i in range(1,6):
    for j in range(1,i+1):
        print(j,end=" ")
    print()
Output:
1 2 
1 2 3 
1 2 3 4 
1 2 3 4 5 

for i in range(1,6):
    for j in range(65,65+i):
        print(chr(j),end="")
    print()
Output:
A
AB
ABC
ABCD
ABCDE
n=5
for i in range(1,n+1):
    print(" "*(n-i)+"* "*i)
for j in range(n-1,0,-1):
    print(" "*(n-j)+"* "*j)
Output:
    * 
   * * 
  * * * 
 * * * * 
* * * * * 
 * * * * 
  * * * 
   * * 
    * 

🔹 Level 6: Mathematical Loops

1.Factorial calculation:

n = 5
fact = 1

for i in range(1, n+1):
    fact *= i

print(f"Factorial of {n} is: {fact}")
Output:

2.Fibonacci series:

n = 10 
a = 0 
b = 1   

for i in range(n):
    print(a, end=" ")
    a, b = b, a + b 
    
Output:
    
0 1 1 2 3 5 8 13 21 34

3.Prime number checker

n = int(input("Enter the number:"))

if n <= 1:
    print("This is not prime")  # 0, 1 or negative number হলে সরাসরি Not Prime
else:
    for i in range(2, n):       # 2 থেকে n-1 পর্যন্ত loop চালাও
        if n % i == 0:          # যদি n কে i দিয়ে ভাগ করলে ভাগশেষ 0 হয়
            print(f"{n} is not a prime number")
            break               # একবার পেলেই break করে দাও
    else:
        print(f"{n} is a prime number") 
Output:
Enter the number:
n is------number/This is not prime

4.Sum of digits:

n=input("Enter the number:")
total=0
for i in n:
    digit=int(i)
    total+=digit
print(total):
Output:
If input 1234
10

5.Palindrome checker:

n=input("Enter the text:")
org=n
total=""
for i in n:
    total+=i
    
if total == org :
    print(f"{org} is a palindrome")
else:
    print(f"{org} is not a palindrome")
Output:
   Enter the text: madam  

Enter the text: hello  
❌ Output: hello is not a palindrome

🔹 Level 7: Loop-Based Problem Solving

1.Find max/min from list:

Maximum number:
numbers=[100, 54, 200, 1, 88]
max_num=numbers[0]
for i in numbers:
    if i > max_num:
        max_num=i
print(max_num)
Output:
200

Minimum Number:
numbers=[31,42,55,29,66,99]
min_num=numbers[0]
for i in numbers:
    if i < min_num:
        min_num=i
print(min_num)
Output:
29

2.Count vowels/consonants:

n = input("Enter the text: ")
vowels = "aeiouAEIOU"
vowel_count = 0
consonant_count = 0

for ch in n:
    if ch.isalpha():  # শুধু অক্ষর হলে এগোবে
        if ch in vowels:
            vowel_count += 1
        else:
            consonant_count += 1

print(f"Vowel: {vowel_count} and Consonant: {consonant_count}")

3.Reverse number or string:

n = input("Enter the text:")
total = ""
for i in n:
    total = i + total
print(total)


4.Count digits/words:

Count Word:
n = input("Enter the text:")
total = 0

for i in n:
    if i.isdigit():
        total += 1

print(total)
Output:
Enter the text:2345
4
Count word:
n=input("Enter the text:")
word=n.split()
print(len(word))

🔹 Level 8: Advanced Optimization

1.List comprehension:

tahole aii roadmap onujaiy shuru koro
🔹 Step 1: Basic Syntax & Structure
1.n=[x**2 for x in range(1,10)] 
print(n)
Output:
[1, 4, 9, 16, 25, 36, 49, 64, 81]

2.items = ["pen", "pencil", "eraser", "sharpener"]
copy_list=[x for x in items]
print(copy_list)
Output:
['pen', 'pencil', 'eraser', 'sharpener']

🔹 Step 2: With Condition
1.odd_number=[x for x in range(1,51) if x % 2 != 0]
print(odd_number)
Output:
[1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49]

2.names = ["Tanvir", "Rafi", "Shanto", "Abdurrahman", "Rian", "Salman"] 
greater_5=[x for x in names if len(names) > 5]
print(greater_5)
Output:
['Tanvir', 'Shanto', 'Abdurrahman', 'Salman']

🔹 Step 3: With if-else Condition
1.numbers = [10, 25, 30, 7, 42]
size=["Big" if x > 20 else "Small" for x in numbers]
print(size) 
Output:
['Small', 'Big', 'Big', 'Small', 'Big']
2.marks = [75, 40, 90, 33, 60]
mark=["Pass" if mark >= 40 else "Fail" for mark in marks]
print(mark)
Output:
['Pass', 'Pass', 'Pass', 'Fail', 'Pass']


🔹 Step 4: Nested Loops

pairs=[f"{x}X{y}={x*y}" for x in range(1,11) for y in range(1,11)]
print(pairs)
Output:
['1X1=1', '1X2=2', '1X3=3', '1X4=4', '1X5=5', '1X6=6', '1X7=7', '1X8=8', '1X9=9', '1X10=10', '2X1=2', '2X2=4', '2X3=6', '2X4=8', '2X5=10', '2X6=12', '2X7=14', '2X8=16', '2X9=18', '2X10=20', '3X1=3', '3X2=6', '3X3=9', '3X4=12', '3X5=15', '3X6=18', '3X7=21', '3X8=24', '3X9=27', '3X10=30', '4X1=4', '4X2=8', '4X3=12', '4X4=16', '4X5=20', '4X6=24', '4X7=28', '4X8=32', '4X9=36', '4X10=40', '5X1=5', '5X2=10', '5X3=15', '5X4=20', '5X5=25', '5X6=30', '5X7=35', '5X8=40', '5X9=45', '5X10=50', '6X1=6', '6X2=12', '6X3=18', '6X4=24', '6X5=30', '6X6=36', '6X7=42', '6X8=48', '6X9=54', '6X10=60', '7X1=7', '7X2=14', '7X3=21', '7X4=28', '7X5=35', '7X6=42', '7X7=49', '7X8=56', '7X9=63', '7X10=70', '8X1=8', '8X2=16', '8X3=24', '8X4=32', '8X5=40', '8X6=48', '8X7=56', '8X8=64', '8X9=72', '8X10=80', '9X1=9', '9X2=18', '9X3=27', '9X4=36', '9X5=45', '9X6=54', '9X7=63', '9X8=72', '9X9=81', '9X10=90', '10X1=10', '10X2=20', '10X3=30', '10X4=40', '10X5=50', '10X6=60', '10X7=70', '10X8=80', '10X9=90', '10X10=100']


🔹 Step 5: List Comprehension with String Operations

Capitalize:
names=["shahed","sabuj","junayed"]
capitalize=[name.capitalize() for name in names]
print(capitalize)
Output:
['Shahed', 'Sabuj', 'Junayed']

Reverse:
names=["shahed","sabuj","junayed"]
reverse=[name[::-1] for name in names]
print(reverse)
Output:
['dehahs','jubas','deyanuj']

Filter words:
names=["shahed","sabuj","junayed"]
greaterthen_5=[name for name in names if len(name) > 5]
print(greaterthen_5)
Output:
['shahed', 'junayed']

Count number of characters in each word:
names=["Shahed","Sabuj","Jonayed"]
length=[len(name) for name in names]
print(length)
Output:
[6, 5, 7]        

Convert all to UPPERCASE:
names=["shahed","sabuj","junayed"]
upper=[name.upper() for name in names]
print(upper)
Output:
['SHAHED', 'SABUJ', 'JUNAYED']

Split()
sentense=["I want to be a Data scientist"]
split=[s.split() for s in sentense]
print(split)
Output:
[['I', 'want', 'to', 'be', 'a', 'Data', 'scientist']]

🔹 Step 6: Dictionary Comprehension (Advanced)

1.Dictionary comprehension with if-else:

even_or_odd = {x: ("EVEN" if x % 2 == 0 else "ODD") for x in range(1, 11)}
print(even_or_odd)
Output:
{1: 'ODD', 2: 'EVEN', 3: 'ODD', 4: 'EVEN', 5: 'ODD', 6: 'EVEN', 7: 'ODD', 8: 'EVEN', 9: 'ODD', 10: 'EVEN'}

2. Dictionary from two lists:

keys = ['name', 'age', 'city']
values = ['Tanvir', 22, 'Dhaka']
combined={keys[i]:values[i] for i in range(len(keys))}
print(combined)
Output:
{'name': 'Tanvir', 'age': 22, 'city': 'Dhaka'}
  ZIP:
      students = ["Shahed", "Sabuj", "jonayed"]
scores = [85, 92, 76]
result={name:score for name,score in zip(students,scores)}
print(result)
Output:
{'Shahed': 85, 'Sabuj': 92, 'jonayed': 76}

  

3. Dictionary from a string (count characters):

name="Shahed Bin Idris"

count_letter={c:name.count(c) for c in name}

print(count_letter)

OUTPUT:
{'S': 1, 'h': 2, 'a': 1, 'e': 1, 'd': 2, ' ': 2, 'B': 1, 'i': 2, 'n': 1, 'I': 1, 'r': 1, 's': 1}

4. Dictionary comprehension with conditions and filtering:

Ex 1:
n={x:x**2 for x in range(1,11) if x % 2 == 0}
print(n)
Output:
{2: 4, 4: 16, 6: 36, 8: 64, 10: 100}
  
Ex 2:Only length more then 5 
names=["Shahed","Sabuj","junayed"]
x={name:len(name) for name in names if len(name) > 5}
print(x)
Output:
{'Shahed': 6, 'junayed': 7}

Ex 3:Mark pass/fail
marks = [33, 55, 70, 28, 85]
result={mark:("PASS" if mark > 33 else "FAIL") for mark in marks}
print(result)
Output:
{33: 'FAIL', 55: 'PASS', 70: 'PASS', 28: 'FAIL', 85: 'PASS'}

FEX:
students = {
    "Shahed": 85,
    "Naim": 35,
    "Rafi": 76,
    "Jannat": 29,
    "Sabuj": 60
}

result={name:("GOOD" if mark >= 70 else "AVERAGE") for name,mark in students.items() if mark >= 40}
print(result)
OUTPUT:
{'Shahed': 'GOOD', 'Rafi': 'GOOD', 'Sabuj': 'AVERAGE'}

5. Convert normal loop to dict comprehension

#Challenge 1 :
data={x:x**10 for x in range(1,6) if x % 2 != 0}
print(data)
Output:
{1: 1, 3: 59049, 5: 9765625}

#Challenge 2:
names = ["Shahed", "Rafi", "Tanim", "Sami"]
lengths={name:len(name) for name in names if len(name) >= 5}
print(lengths)
Output:
{'Shahed': 6, 'Tanim': 5}

6. Invert a dictionary (value → key)

#Challenge 2:
colors = {
    "red": "#FF0000",
    "green": "#00FF00",
    "blue": "#0000FF"
}

x={value:key for key,value in colors.items()}
print(x)
Output:
{'#FF0000': 'red', '#00FF00': 'green', '#0000FF': 'blue'}


#Challenge 2:
country_codes = {
    "BD": 880,
    "US": 1,
    "UK": 44
}
x={value:key for key,value in country_codes.items()}
print(x)
Output:
{880: 'BD', 1: 'US', 44: 'UK'}

Challenge:
students = {
    "Shahed": "A",
    "Rafi": "B",
    "Tanim": "A",
    "Sami": "C",
    "Fahim": "B"
}
x={}
for name,grade in students.items():
    x.setdefault(grade,[]).append(name)
print(x)
Output:
{'A': ['Shahed', 'Tanim'], 'B': ['Rafi', 'Fahim'], 'C': ['Sami']}

    

7. Nested dictionary comprehension (advance)

Challenge 1:
x={i:{j:i*j for j in range(1,4)} for i in range(2,5)}
print(x)
Output:
{2: {1: 2, 2: 4, 3: 6}, 3: {1: 3, 2: 6, 3: 9}, 4: {1: 4, 2: 8, 3: 12}}
students = ['Shahed', 'Rafi', 'Tanim']
subjects = ['Bangla', 'English', 'ICT']
marks={student:{subject:0 for subject in subjects} for student in students}
print(marks)
Output:
{'Shahed': {'Bangla': 0, 'English': 0, 'ICT': 0}, 'Rafi': {'Bangla': 0, 'English': 0, 'ICT': 0}, 'Tanim': {'Bangla': 0, 'English': 0, 'ICT': 0}}

8:

Square:

square={x:x**2 for x in range(1,11)}
print(square)
Output
{1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49, 8: 64, 9: 81, 10: 100}

Length in dictionary:
names=["Shahed","Sabuj","Jonayed"]
length={name:len(name) for name in names}
print(length)
Output:
{'Shahed': 6, 'Sabuj': 5, 'Jonayed': 7}

Square of even numbers in range of 1 to 11:
even_square={x:x**2 for x in range(1,11) if x % 2 == 0}
print(even_square)
Output:
{2: 4, 4: 16, 6: 36, 8: 64, 10: 100}

Final Challenges:
Challenge 1:
x={i:{j:i*j for j in range(1,6) if i*j % 2 == 0} for i in range(2,5)}
print(x)
Output:
{2: {1: 2, 2: 4, 3: 6, 4: 8, 5: 10}, 3: {2: 6, 4: 12}, 4: {1: 4, 2: 8, 3: 12, 4: 16, 5: 20}}
Challeng 2:
students = ['Shahed', 'Rafi', 'Tanim', 'Jannat']
subjects = ['Bangla', 'English', 'Math']
result={student:{subject:0 for subject in subjects if subject != "English"} for student in students if student != "Jannat"}
print(result)
Output:
{'Shahed': {'Bangla': 0, 'Math': 0}, 'Rafi': {'Bangla': 0, 'Math': 0}, 'Tanim': {'Bangla': 0, 'Math': 0}}

🔹 Step 7: Set & Tuple Comprehension

Challenge 1:
words = ["apple", "banana", "apple", "cherry", "banana"]
lengths={len(word) for word in words}
print(lengths)
Output:
{5,6}
Challenge 2:
nums = range(1, 6)
even_squares=tuple(x**2 for x in nums if x % 2 ==0)
print(even_squares)
Output:
(4,16) 

🔹 Step 8: Real-World Practice Problems

Problem 1: Flatten a Nested List

nested_list = [[1, 2, 3], [4, 5], [6, 7, 8]]
flat_list = [item for sublist in nested_list for item in sublist]
print(flat_list)
Output:
 [1, 2, 3, 4, 5, 6, 7, 8]

Problem 2: Filter words starting with vowel from a sentence
sentence="I want to be a data scientist"
words=sentence.split()
vowel="AEIOUaeiou"
vowel_word=[word for word in words if word[0] in vowel]
print(vowel_word)
Output:
['I','a']

Problem 3: Count frequency of characters in a string (excluding spaces)
text="Shahed Bin Idris"
count_frequency={c:text.count(c) for c in text if c !=" "}
print(count_frequency)
Output:
{'S': 1, 'h': 2, 'a': 1, 'e': 1, 'd': 2, 'B': 1, 'i': 2, 'n': 1, 'I': 1, 'r': 1, 's': 1}

Problem 4: Create dictionary of squares for numbers divisible by 3 in range 1 to 20
n={x:x**2 for x in range(1,21) if x % 3 == 0}
print(n)
Output:
{3: 9, 6: 36, 9: 81, 12: 144, 15: 225, 18: 324}

Problem 5: Reverse each word in a list of words
words=["Python","Java","C++","Html"]
reverse=[word[::-1] for word in words]
print(reverse)
Output:
['nohtyP', 'avaJ', '++C', 'lmtH']

2.Efficient looping

Phase 1:(for index)
Using normal loop:
names=["Shahed","Sabuj","Jonayed"]
for i in range(len(names)):
    print(names[i])
Using Efficent way:
names=["Shahed","Hridoy","Omar"]
length=len(names)
for j in range(length):
    print(names[j])
Phase 2:(Correct using of data stracture)
items = ["Apple", "Banana", "Mango", "Watermelon"]

item_set = set(items)

print("Apple" in items)       # Using normal loop (list search)
print("Mango" in item_set)    # Using efficient loop (set search)

Phase 3:(Using Python built-in-function)
Using normal loop:
numbers=[1,3,5,7,9]
total=0
for num in numbers:
    total+=num
print(total)
Using efficent loop:
numbers=[2,4,6,8]
total=sum(numbers)
print(total)

Phase 4:(Using list comprehension)

Using normal loop:

squares=[]

for x in range(1,11):

squares.append(x**2)

print(squares)

Using efficient loop:

squares=[x**2 for x in range(1,11)]

print(squares)

Phase 5:

Using normal efficient loop:

names=["Shahed","Sabuj","Jonayed"]

length=len(names)

for name in range(length):

    print(f"Roll:{name+1}:{names[name]}")

Output:

Roll:1:Shahed

Roll:2:Sabuj

Roll:3:Jonayed

Using enumerate loop:

names=["Shahed","Sabuj","Jonayed"]

for roll,name in enumerate(names,start=1):

    print(f"Roll:{roll}:{name}")

Output:

Roll:1:Shahed

Roll:2:Sabuj

Roll:3:Jonayed

Phase 6:(Using zip)

Using normal efficent loop:

names=["Shahed","Sabuj","Joanyed"]

ages=[21,26,21]

length_1=len(names)

length_2=len(ages)

for detail in range(length_1):

    print(f"Name:{names[detail]} | Age:{ages[detail]}")

Output:

Name:Shahed | Age:21

Name:Sabuj | Age:26

Name:Joanyed | Age:21

Using zip method:

names=["Shahed","Sabuj","Joanyed"]

ages=[21,26,21]

for name,age in zip(names,ages):

    print(f"Name:{name} | Age:{age}")

Output:

Name:Shahed | Age:21

Name:Sabuj | Age:26

Name:Jonayed | Age:21

Phase 6 Challenge:

Challenge 1: Student Report

names = ["Shahed", "Sabuj", "Jonayed", "Rafi"]

scores = [85, 90, 78, 92]

for roll,(name,mark) in enumerate(zip(names,scores),start=1):

    print(f"Roll:{roll} | Name:{name} | Marks:{mark} | Name length:{len(name)}")

Output:

Roll:1 | Name:Shahed | Marks:85 | Name length:6

Roll:2 | Name:Sabuj | Marks:90 | Name length:5

Roll:3 | Name:Jonayed | Marks:78 | Name length:7

Roll:4 | Name:Rafi | Marks:92 | Name length:4

Challenge 2: Price List

products = ["Apple", "Banana", "Mango", "Watermelon"]

prices = [120, 40, 100, 250]

for serial,(product,price) in enumerate(zip(products,prices),start=1):

    print(f"{serial}. {product} (length:{len(product)}) - Price:{price} Taka")

Output:

1. Apple (length:5) - Price:120 Taka

2. Banana (length:6) - Price:40 Taka

3. Mango (length:5) - Price:100 Taka

4. Watermelon (length:10) - Price:250 Taka

Challenge 3: Mixed Data

countries = ["Bangladesh", "India", "Nepal", "Bhutan"]

capitals = ["Dhaka", "New Delhi", "Kathmandu", "Thimphu"]

populations = [170, 1400, 30, 0.8]  # in millions

for serial,(country,capital,population) in enumerate(zip(countries,capitals,populations),start=1):

    print(f"{serial}. {country} - {capital} | Population:{population} million")

Output:

1. Bangladesh - Dhaka | Population:170 million

2. India - New Delhi | Population:1400 million

3. Nepal - Kathmandu | Population:30 million

4. Bhutan - Thimphu | Population:0.8 million

Phase 7:
import timeit

def my_loop():
    for i in range(1000):
        pass

  print(timeit.timeit(my_loop, number=10000))

3.Loop performance (time complexity)
















#

Comments

Popular posts from this blog

AI/ML & Python Mastery Roadmap (2025-2030)