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
Eva Feng
1,539 PointsProblem with class Node
When I ran the code in this video the console shows TypeError: Node() takes no arguments
Why is that?
2 Answers
Steven Parker
243,201 PointsIt sounds like you may have an error in the definition of the __init__ method in class Node.
If you need help with finding it, share your workspace with us so we can take a look.
Here's a video about sharing a snapshot of your workspace.
Eva Feng
1,539 PointsBy typing the following in console: python -i linked_list.py
and error message will show up saying Node() takes no arguments. Could it be the set up of my PC?
Eva Feng
1,539 PointsEva Feng
1,539 PointsThank you Steven. Here is my workspace. Would be grateful if you can take a look.
https://w.trhou.se/5ohdvscewe
Steven Parker
243,201 PointsSteven Parker
243,201 PointsWhen I run your code in the workspace, I get no errors. Exactly how are you running it?