User Profile
Collapse
-
Barry1point4 replied to TypeError: 'NoneType' object is not iterable - Learning python, tad confused.in PythonThanks for both anwsers, they both worked well, and thanks to Smygis for helping me to understand. -
Barry1point4 started a topic TypeError: 'NoneType' object is not iterable - Learning python, tad confused.in PythonTypeError: 'NoneType' object is not iterable - Learning python, tad confused.
I've been learing python from http://www.learnpython.org/page/Functions and in the functions lesson I've got stuck on the exercise for 2 days now.
As far as I can tell my code should work but when i run it, it returns TypeError: 'NoneType' object is not iterable. Can anyone explain why?
My code is:
Code:def list_benefits(): print 'More organized code', 'More readable code' , 'Easier code reuse' 'Allowing
No activity results to display
Show More
Leave a comment: