r/genz_coder • • Dec 20 '24

Python program is super easy

Post image
0 Upvotes

r/genz_coder • • Dec 21 '24

Think you know the best way to merge Python dictionaries? 🤔 Test these 3 methods—but here’s the twist: one of them might not be as efficient as you think!

Post image
0 Upvotes

r/genz_coder • • Dec 25 '24

What's wrong!!

Post image
1 Upvotes

r/genz_coder • • Dec 17 '24

Day-6 Loops in Python

2 Upvotes

Practice Programs for for Loop

  1. Write a program to print numbers from 1 to 10.

  2. Write a program to print the square of numbers from 1 to 10.

  3. Write a program to print all even numbers from 1 to 20.

  4. Write a program to print all odd numbers between 1 and 20.

  5. Write a program to print the multiplication table of a given number.

Practice Programs for while Loop

  1. Write a program to print numbers from 1 to 10 using a while loop.

  2. Write a program to print numbers in reverse from 10 to 1.

  3. Write a program to calculate the sum of numbers from 1 to 100.

  4. Write a program to print all even numbers between 1 and 20.

  5. Write a program to find the factorial of a given number using a while loop.

Here's the Video Tutorial Link:
https://www.youtube.com/live/Oiaya9Wra_k?si=EGgFZ05YuTULVuyB