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

Functions relating to tutorial videos

Hi,

I'm finding some tasks are asking for things that were not mentioned in the previous videos which makes it hard to figure out the code. Its possible I'm missing something. If so I apologise.

E.g. Python Basics is my first Python course:

In 'Try and Except' (3 objectives), the 2nd task states "Let's make sure we're always working with floats. Convert your arguments to floats before you add them together. You can do this with the float() function."

Was 'float' covered in the previous tutorial videos or how should we figure things like this out?

Thanks

1 Answer

hit the python docs. https://docs.python.org/3/ in the upper right there is a link to index, click on the letter you need, here F, find float and see what it does. https://docs.python.org/3/library/functions.html#float reading the docs is part of coding.

Thanks James. That helps. I'm fairly new to this