Question: Exercises: 1. Write a function that gets an integer as parameter and returns True if the parameter is a prime number, and returns False otherwise.

 Exercises: 1. Write a function that gets an integer as parameter

Exercises: 1. Write a function that gets an integer as parameter and returns True if the parameter is a prime number, and returns False otherwise. 2. Write a function that gets two integers as parameters, and retums the sum of all integer numbers between these two numbers (both inclusive). 3. Write a function that gets three integers (say n1,n2,k ) as parameters, and returns the sum of all integer numbers divisible by k between n1 and n2 (both inclusive). 4. Write a function that gets three integers (say n1,n2,k ) as parameters, and returns the average of all integer numbers divisible by k between n1 and n2 (both inclusive). 5. Write a function that returns the list of prime factors of a given integer number. 6. Write a function that gets a string as parameter, and returns True if the alpha numeric characters forms a palindrome. Example: "Madam, I'm Adami" is a palindrome. 7. Write a function that returns the number of occurences of a number in a list. 8. Write a function that returns the number of peak values in a list

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!