- This event has passed.
Python Loops Question
May 16, 2024 @ 8:00 am - 5:00 pm
- Write a Python program to print numbers from 1 to 5 using a
forloop. - Write a Python program to print numbers from 10 to 1 using a
whileloop. - Write a Python program to print even numbers from 2 to 10.
- Write a Python program to print the sum of all numbers from 1 to 10.
- Write a Python program to print the product of all numbers from 1 to 5.
- Write a Python program to print the squares of numbers from 1 to 5.
- Write a Python program to print the cubes of numbers from 1 to 5.
- Write a Python program to print the reverse of a given list
[1, 2, 3, 4, 5]. - Write a Python program to count the number of characters in a given string.
- Write a Python program to count the number of even numbers in a list
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]. - Write a Python program to find the factorial of 5.
- Write a Python program to find the maximum number among 3 numbers: 10, 20, and 30.
- Write a Python program to find the minimum number among 4 numbers: 5, 10, 2, and 8.
- Write a Python program to find the sum of all elements in a list
[5, 10, 15, 20, 25]. - Write a Python program to find the average of all elements in a list
[2, 4, 6, 8, 10]. - Write a Python program to check if a given number 7 is prime.
- Write a Python program to print the Fibonacci series up to 8 terms.
- Write a Python program to find the GCD (Greatest Common Divisor) of two numbers: 24 and 36.
- Write a Python program to find the LCM (Least Common Multiple) of two numbers: 4 and 6.
