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 Python Basics (Retired) Pick a Number! Any Number! Imports

import the random library

in python, i think i am missing the point somewhere

random_num.py
int(random.random()

1 Answer

Vittorio Somaschini
Vittorio Somaschini
33,371 Points

Hello Wellington.

I presume you are referring to task 1/2.

To import a library in python we use the word "import" at the very top of the file, followed by a space and the name of the library we want to import.

Vittorio