Jump to content


Photo

Chapter 5, Page 153, Head First Python


  • Please log in to reply
1 reply to this topic

#1 WinPy

WinPy

    New Member

  • Members
  • Pip
  • 1 posts

Posted 15 December 2013 - 10:23 AM

After writing the code, i got a Error message.

Error:

print(sorted(clean_james) )
TypeError: unorderable types: str() < tuple()


str() and tuple() are not compatible, but how can i fix this?

I work with python 3.3

thanks in advance!

#2 paulbarry

paulbarry

    Advanced Member

  • O'Reilly Author
  • PipPipPipPipPipPipPipPip
  • 307 posts

Posted 18 December 2013 - 07:12 AM

Can you upload the code you are running? Without this, it is very hard for anyone to make any concrete suggestions. Be sure to put your code between the "code" tags, which you can add to your post using the <> button.

Thanks.

--Paul.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users