Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

About Math functions in python in the course of teamtreehouse

I am learning Python programming on teamtreehouse and I am currently on track "Write Better Python". I have programmed in C language some while ago and I have used math functions and graphics functions in it. I am curious to know if math and graphics functions are available in python, and if so, when are they introduced in this course?

1 Answer

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

I'm not sure what you're asking about. Can you give me an example of the C functionality you're interested in in Python?

I would like to learn about using square root and exponents.

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

Well, did you try finding them online? Exponents are done with ** (5**2 gives 25), and square roots are in the math module (math.sqrt(25) will give back 5).