[Tutor] Unorderable types

Cameron Simpson cs at cskk.id.au
Sat Aug 5 02:09:44 EDT 2017


On 04Aug2017 22:00, boB Stepp <robertvstepp at gmail.com> wrote:
>When I attempted to recreate his error message with the original code
>snippets he sent, I got something a bit different:
>
>================================================================================
>py3: guess = input()
>2
>py3: guess < number
>Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>TypeError: '<' not supported between instances of 'str' and 'int'
>================================================================================

I don't know about the text of the message, but his original snippets included 
a:

  guess = int(guess)

between those 2 lines.

Anyway, we have his current code, which i can't made produce the error.

Cheers,
Cameron Simpson <cs at cskk.id.au> (formerly cs at zip.com.au)


More information about the Tutor mailing list