Jump to content


Photo

Chapter 4 P128 Modified 'print_lol' Not Importing


  • Please log in to reply
No replies to this topic

#1 Wrinklytech

Wrinklytech

    New Member

  • Members
  • Pip
  • 1 posts

Posted 24 September 2014 - 03:18 AM

I kept getting 'print_lol is not defined' error when running 'print_lists' program with 'nester' imported. Some testing showed that 'print_lol' was not in scope, so after the 'import nester' line I added 'from nester import print_lol', after which the program worked as expected. Unless I missed something, the book doesn't mention having to do this - should it be necessary?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users