Python Basics Exercises: Numbers and Math

In Python Basics: Numbers and Math, you learned the mathematical skills that you’ll need as a Python programmer. Now, you’ll take those skills to the next level by actively practicing and applying what you’ve learned.

In this hands-on course, you’ll have the opportunity to reinforce your understanding of numbers and math in Python programming through a series of exercises and coding challenges. By actively engaging with the material, you’ll gain the confidence you need to apply your learning in real-world scenarios.

In this course, you’ll practice:

  • Creating integers and floating-point numbers
  • Using arithmetic expressions, math functions, and number methods
  • Formatting and displaying numbers in strings
  • Taking numbers as user input

In working through these exercises, you’ll deepen your knowledge and solidify your understanding of the Python language. You’ll not only gain confidence in your programming abilities but also enhance your problem-solving skills.

This course is part of the Python Basics series, which accompanies Python Basics: A Practical Introduction to Python 3. You can also check out other Python Basics courses.

Note that you’ll be using IDLE to interact with Python throughout this course. If you’re just getting started, then you might want to check out Python Basics: Setting Up Python before diving into this course.

What’s Included:

Downloadable Resources:

Getting Numbers From the User

2 Lessons 4m

About Bartosz Zaczyński

Bartosz Zaczyński Bartosz Zaczyński

Bartosz is a bootcamp instructor, author, and polyglot programmer in love with Python. He helps his students get into software engineering by sharing over a decade of commercial experience in the IT industry.

» More about Bartosz

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

« Browse All Courses