The Square Root Function in Python (Overview)
Are you trying to solve a quadratic equation? Maybe you need to calculate the length of one side of a right triangle. You can use themath module’ssqrt() method for determining the square root of a number. This course covers the use ofmath.sqrt() as well as related methods.
In this course, you’ll learn:
- Aboutsquare roots and related mathematical operations
- How to use the Python square root function,
sqrt() - Where
sqrt()can be useful inreal-world examples
00:00Welcome to Square Root in Python. My name is Chris, and I will be your guide.
00:06In this course, you will learn what are square roots, powers, andn-th roots,how to get a square root in Python,how square roots are calculated, and using square roots in practice.
00:20A quick note on versions: All code in this course was tested with Python 3.9.Square root has been around since the beginning,so most things will work in most versions, and I’ll do my best to point outdifferences as I go along.
00:34A square is any number multiplied by itself.A square root is a number that when multiplied by itself gives the square.5 squared is 25, so the square root of 25 is 5.
00:48The knowledge of square roots has been around for thousands of years.There are Babylonian clay tablets dating from 1800 BCE that reference thisconcept.
00:57Python provides a method for calculating square roots as part of themathlibrary.Next up, I’ll show you some square roots and how to find them in code.
Doug Ouverson onJuly 14, 2021
Thank you, Chris, for a job well done.
I like these short, topical tutorials. I’d like to see more of them.
Cheers!

Christopher TrudeauRP Team onJuly 15, 2021
Glad you enjoyed it Doug. Thanks for the feedback, I’ve passed it along to our editors.
Become a Member to join the conversation.
Course Contents

