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 (2015) Number Game App Squared

Didier Borel
Didier Borel
2,837 Points

where are the files

in the instructions it says " Look in the file for examples." which files are they referring to? where are they?

squared.py
# EXAMPLES
# squared(5) would return 25
# squared("2") would return 4
# squared("tim") would return "timtimtim"

1 Answer

Grace Kelly
Grace Kelly
33,990 Points

The examples are in the code you pasted above e.g squared(5) would return 25, they're just commented out ;)

Didier Borel
Didier Borel
2,837 Points

i meant something else, but drop it, thanks for you reply in any event. thxs for your time

Didier Borel
Didier Borel
2,837 Points

in fact I meant, this: in the isntsructions to the challenge it says "If the argument cannot be turned into an integer (maybe it's a string of non-numbers?), return the argument multiplied by its length. Look in the file for examples." so question is which "files" are they referring to? Are there some learning documents, or reference files which I am not aware of, or are they just referring to previous tracks? thxs.