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 trialOllie Webster
5,035 PointsTypeError: 'set' object is not callable
There seems to be an error with the Python Console in Workspaces. At the very first step in this video, I fail as the console throws the error described above. This is after I call set1 = set(range(10)). Do I need to import anything?
1 Answer
Steven Parker
231,269 PointsI was not able to replicate the error. Here's what I got n the workspace:
treehouse:~/workspace$ python
Python 3.5.0 (default, Jan 18 2018, 00:27:28)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> set1 = set(range(10))
>>> set1
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
>>>
Ollie Webster
5,035 PointsOllie Webster
5,035 PointsI've now got that. It seemed to be a minor bug with the workspace instance which was solved by refreshing the page!