Python for mathematics

Sharpen your python coding skills by solving these mathematical problems and puzzles.

There are currently 38 quizzes on this page, which are aimed at nurturing various levels of python programming skills.

Check out the python tutorials.

Each quiz asks the student to write the python code that solves the given problem, then call the relevant function in the box below it. You can define as many functions as you need.

7 quizzes
5 quizzes

Level 1

These quizzes test the student's understanding of the following concepts in python: numeric and string data types, and control statements, particularly the for loop.

  1. Solve a linear equation
  2. Solve a linear equation
  3. Counting digits
  4. Inspect the last two digits
  5. Where is that letter?
12 quizzes
4 quizzes

Level 3

These quizzes train the students on a deep understanding of iterative and conditional statements, and to apply these programming concepts to solve complex mathematical tasks.

  1. Counting occurrence of digits
  2. Calculate the average
  3. Count the number of factors
  4. Count prime numbers
10 quizzes