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

Python

what does this mean?

TypeError: '>=' not supported between instances of 'str' and 'int'

1 Answer

Just to be clear, you ARE using the >= right!!! This error means you are trying to using a >= ,which is basically a 1st value greater than or equal to 2nd value. the variables you are using are different types. One is a string or "str", which is immutable (can't be changed), and the other is an integer or "int" which is mutable (can be changed). If what you're trying to do compares a variable to a number, try doing this:

variable >= int( number in here )

hope this helps. also, if it doesn't work after this, please post a snapshot using the camera icon in the treehouse workspace. Have a good day.