- Lab
- A Cloud Guru
Calculating Circular Values with Python's Math Modules
There are so many things that we can model while we're programming, and this includes things that we learned about in mathematics classes, such as shapes. These skills can be useful when we're working on graphics software or something similar to help engineers model their design structures. In this hands-on lab, we'll use some of the tools provided to us by Python's `math` module to make geometric calculations about circles. To feel comfortable completing this lab, you'll want to know how to use Python's `math` module. Watch the "Common `math` Functions and Constants" video from the [Using Python's Math, Science, and Engineering Libraries](https://linuxacademy.com/cp/modules/view/id/621) course.
Path Info
Table of Contents
-
Challenge
Implement the `circle_circumference` function.
Implement the
circle_circumference
function such that running the automated tests for that function intest_calcs.py
all pass. You'll need to utilize themath
module and think outside of the box a little bit. -
Challenge
Implement the `circle_area` function.
Implement the
circle_area
function such that running the automated tests for that function intest_calcs.py
all pass. You'll need to utilize themath
module and think outside of the box a little bit.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.