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
MOD
Grace Kelly
Treehouse Moderator 33,976 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.