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 a single python function. If the student needs to define more than one function, then one function must be defined as the main function, while the others must be defined inside the main function (inner functions).

Level 0: Solved preparatory quizzes

These quizzes are accompanied with their solutions. Check them out if you want to warm up before attempting the quizzes in Level 1 and up.

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.

Level 2

These quizzes enhance the student's understanding of for and while loops, and challenge them to apply complex conditional statements within the loops.

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.

Level 4

These quizzes train the students to apply their understanding of functions, conditional and iterative statements, and collection data types to solve complex mathematical problems.