python practice questions
python practice questions
1. Write a Python program to print all numbers between 1 and 50 that are divisible by 3.
2. Create a function that takes a list of numbers as input and returns the sum of all even
numbers in the list.
3. Write a program to calculate the factorial of a number using a while loop.