Hurry Up! And Get Flat 10% Discount On Your First Order                                   We are available by 24/7 for your support!

RealCode4You

+91 82 67 81 38 69

realcode4you@gmail.com

Order Now
  • Home
  • Services
    • Python Expert Help
    • Java Expert Help
    • Data Science Assignment Help
    • Machine Learning Expert Help
    • C Programming Assignment Help
    • Database Assignment Help
    • PHP Assignment Help
    • SQL Assignment Help
    • Data Structure Assignment Help
    • .Net Assignment Help
    • Android Assignment Help
    • Python Project Help
    • Python Programming Help
    • Python Homework Help
    • JavaFx Assignment Help
    • Spring Boot Assignment Help
    • JSP Servlet Assignment Help
    • Computer Science Assignment Help
  • Web Expert Help
    • Python Web Expert Help
    • Java Web Expert Help
    • PHP Web Expert Help
    • ASP .Net Web Expert Help
    • HTML Project Help
    • Java Script Project Help
    • Python GUI Assignment Help
    • Python Django Assignment Help
    • Python Flask Assignemnt Help
    • Python Tkinter Assignment Help
    • NodeJs Assignment Help
    • Angular Assignment Help
    • React Native Assignment Help
    • ReactJS Assignment Help
  • Machine Learning
    • OpenCV Assignment Help
    • Machine Learning Assignment Help India
    • Deep Learning Assignment Help
    • R Programming Assignment Help
    • Data Mining Assignment Help
    • Matlab Assignment Help
    • Tensorflow Assignment Help
    • Keras Assignment Help
    • Data Visualization Assignment Help
    • Computer Vision Assignment Help
    • Image Processing Assignment Help
    • Data Analysis Assignment Help
    • Big Data Assignment Help
    • Map Reduce Assignment Help
    • PySpark Assignment Help
    • Tableau Assignment Help
    • Power BI Assignment Help
    • NLP Assignment Help
    • Research Paper Assignment Help
    • D3.js Assignment Help
  • Database
    • MySQL Assignment Help
    • SQL Server Assignment Help
    • PostgreSQL Assignment Help
    • MongoDB Assignment Help
    • Oracle Assignment Help
    • MS Access Assignment Help
    • DBMS Assignment Help
    • Neo4j Assignment Help
    • Excel Assignment Help
  • Other Services
    • Mathematics Assignment Help
    • Abstract Algebra Assignment Help
    • Calculus Assignment Help
    • Linear Algebra Assignment Help
    • Discrete Mathematics Assignment Help
    • Trigonometry Assignment help
    • Set Theory Assignment Help
    • Mathematics Homework Help
    • Boolean Algebra Assignment Help
    • Case Study Assignment Help
    • Essay Writing Assignment Help
    • Report Writing Assignment Help
  • Blog
  • Payment
To see this working, head to your live site.
  • Categories
  • All Posts
  • My Posts
realcode4you
May 24, 2020

Python Function Programming Practice Set Questions | Realcode4you

in Python Programming

Here we have post the many python questions related to python function:


Practice Questions On Functions

1. Write a function that inputs a number and prints the multiplication table of that number

2. Write a program to print twin primes less than 1000. If two consecutive odd numbers are

both prime then they are known as twin primes

3. Write a program to find out the prime factors of a number. Example: prime factors of 56 -

2, 2, 2, 7

4. Write a program to implement these formulae of permutations and combinations.

Number of permutations of n objects taken r at a time: p(n, r) = n! / (n-r)!. Number of

combinations of n objects taken r at a time is: c(n, r) = n! / (r!*(n-r)!) = p(n,r) / r!

5. Write a function that converts a decimal number to binary number

6. Write a function cubesum() that accepts an integer and returns the sum of the cubes of

individual digits of that number. Use this function to make functions PrintArmstrong() and

isArmstrong() to print Armstrong numbers and to find whether is an Armstrong number.

7. Write a function prodDigits() that inputs a number and returns the product of digits of that

number.

8. If all digits of a number n are multiplied by each other repeating with the product, the one

digit number obtained at last is called the multiplicative digital root of n. The number of

times digits need to be multiplied to reach one digit is called the multiplicative

persistance of n.

Example: 86 -> 48 -> 32 -> 6 (MDR 6, MPersistence 3)

341 -> 12->2 (MDR 2, MPersistence 2)

Using the function prodDigits() of previous exercise write functions MDR() and

MPersistence() that input a number and return its multiplicative digital root and

multiplicative persistence respectively

9. Write a function sumPdivisors() that finds the sum of proper divisors of a number. Proper

divisors of a number are those numbers by which the number is divisible, except the

number itself. For example proper divisors of 36 are 1, 2, 3, 4, 6, 9, 18

10. A number is called perfect if the sum of proper divisors of that number is equal to the

number. For example 28 is perfect number, since 1+2+4+7+14=28. Write a program to

print all the perfect numbers in a given range

11. Two different numbers are called amicable numbers if the sum of the proper divisors of

each is equal to the other number. For example 220 and 284 are amicable numbers.

Sum of proper divisors of 220 = 1+2+4+5+10+11+20+22+44+55+110 = 284

Sum of proper divisors of 284 = 1+2+4+71+142 = 220

Write a function to print pairs of amicable numbers in a range

12. Write a program which can filter odd numbers in a list by using filter function

13. Write a program which can map() to make a list whose elements are cube of elements in

a given list

14. Write a program which can map() and filter() to make a list whose elements are cube of

even number in a given list


If you need any help related to python programming you can contact us at below given contact details:


realcode4you@gmail.com

0 comments
0
Comments
0 comments

REALCODE4YOU

USEFUL LINKS

ADDRESS

Follows Us!

Realcode4you is the one of the best website where you can get all computer science and mathematics related help, we are offering python project help, java project help, Machine learning project help, and other programming language help i.e., C, C++, Data Structure, PHP, ReactJs, NodeJs, React Native and also providing all databases related help.

​

Hire Us to get Instant help from realcode4you expert with an affordable price.

Services
Reviews

Noida, Sector 63, India 201301

  • Facebook
  • Twitter
  • Instagram