Python 100 Questions, 100 Python Problems with Solutions for Beginners | Most Common Python Programs for Practice !! BY Rakesh !!

 


                                                                                                                                                                                By:-Rakesh Kum.. 

1)   Write a function to calculate the factorial of a number.

2) Write a function that checks whether a number is prime or not.


3)   Write a function to find the greatest common divisor (GCD) of two numbers.

4)   Write a function that takes a list as an argument and returns the sum of all the elements in the list.


5)   Write a function to check whether a given string is a palindrome or not.



6)   Write a function to find the maximum of three numbers.

7)   Write a function to find the minimum of three numbers.


8)   a function to calculate the area of a circle given its radius.


9)   Write a function that checks if a given year is a leap year.


10)  Write a function that takes a list of numbers and returns a new list with the unique elements from the original list.



Post a Comment

Post a Comment (0)

Previous Post Next Post