Loading Events

« All Events

  • This event has passed.

Python Loops Question

May 16, 2024 @ 8:00 am - 5:00 pm

  1. Write a Python program to print numbers from 1 to 5 using a for loop.
  2. Write a Python program to print numbers from 10 to 1 using a while loop.
  3. Write a Python program to print even numbers from 2 to 10.
  4. Write a Python program to print the sum of all numbers from 1 to 10.
  5. Write a Python program to print the product of all numbers from 1 to 5.
  6. Write a Python program to print the squares of numbers from 1 to 5.
  7. Write a Python program to print the cubes of numbers from 1 to 5.
  8. Write a Python program to print the reverse of a given list [1, 2, 3, 4, 5].
  9. Write a Python program to count the number of characters in a given string.
  10. Write a Python program to count the number of even numbers in a list [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].
  11. Write a Python program to find the factorial of 5.
  12. Write a Python program to find the maximum number among 3 numbers: 10, 20, and 30.
  13. Write a Python program to find the minimum number among 4 numbers: 5, 10, 2, and 8.
  14. Write a Python program to find the sum of all elements in a list [5, 10, 15, 20, 25].
  15. Write a Python program to find the average of all elements in a list [2, 4, 6, 8, 10].
  16. Write a Python program to check if a given number 7 is prime.
  17. Write a Python program to print the Fibonacci series up to 8 terms.
  18. Write a Python program to find the GCD (Greatest Common Divisor) of two numbers: 24 and 36.
  19. Write a Python program to find the LCM (Least Common Multiple) of two numbers: 4 and 6.

Details

Date:
May 16, 2024
Time:
8:00 am - 5:00 pm

Organizer

cocas

Venue

RevivingIndia
Meena bazar
Patna, 800007 India
+ Google Map
Phone
9716817710
View Venue Website