Posts

Showing posts from July, 2025

The new things I had learn while learning python #4 - summerization orf loops

while loop = Do something until the condition is true for loop = When you know the exactly how much time I should use repetition Do while loop = Runs the program once and continue it until the condition is true 

The new things I had learn while learning python #4 - Multifaction in While loop

Image
  To get the following Output 3 x 1 = 3                                                       print(f"3 x {num} = {multiplication}") 3 x 2 = 6 3 x 3 = 9 ... 3 x 10 = 30

The new things I had learn while learning python #3 - While loop

Image
🌀 What is a while loop? A while loop is like saying: 👉 “ Keep doing this thing again and again, as long as this condition is true. ” 💬 Real-life Example: Imagine I say: “Babe, keep giving me kisses until I fall asleep 😴.” That’s a while loop in real life 😘💋 💥 What happens here? count = 1 → this starts at 1 while count <= 3: → this checks: “Is count 1, 2, or 3?” If yes → go inside and do the code. print("I love you 💖") → prints the message. count += 1 → adds 1 to count (so it becomes 2, then 3, then 4...) When count becomes 4 , the loop stops because 4 <= 3 is false .

The new things I had learn while learning python #2 - Typecasting

Image
  Converting a variable's data type to another data type is datacasting........

The new things I had learn while learning python #1 - print(f"Hellow {first_name}")

Image
Means: Show on the screen — Hello + your name. The f means:  “Hey Python, please put the name here inside the {} .” The f itself is not a data type. It’s just a special mark that tells Python: “Hey, this is a formatted string — please put the values of variables inside the {} right here.” formatted string = A formatted string is just a string (text) where you can put variables or values inside it easily — instead of writing separate parts and joining them. like