Zane MOODY687 Points
Why were apostrophes not needed when you ran the command: int(, or round(?
In the video, I noticed you did not have to add apostrophes to the syntax. Are numbers not apart of a string literal? Or does Python not see individual numbers as chunks?
Chris FreemanTreehouse Moderator 55,475 Points
As Python parses code it sees tokens (chunks of code) as either:
- built-in keywords or functions,
- user-defined objects and variables (object labels)
- literal strings (bound by quotation marks)
Since objects and label names can not have a number as the first character, the
round() will determine they are operating on a number.
Post back if you need more help. Good luck!!!