Quiz # 3

For this quiz I had to make a program that would return the square and cube root of a given number. I used two mathematical functions: math.sqrt() for the square root and math.pow(); which raises a value, in this case to 1/3 to get the cube root. I also had to first import math module.

This is how my code looked at the end:quiz3

And how it ran:



2 thoughts on “Quiz # 3

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s