Unoderable error

How can i remove unoderable error types:int() < str()
in my python code
please reply fast!!!

Such an error is due to the comparison of variables of different data types. Can you provide a screenshot of the code?

In which line are you getting the error?

The issue here is that input() returns a string in Python 3.x, so when you do your comparison, you are comparing a string and an integer, which isn’t well defined (what if the string is a word, how does one compare a string and a number?) - in this case Python doesn’t guess, it throws an error.

To fix this, simply call int() to convert your string to an integer
Like this: int(input(…))
For more information you can visit:

1 Like

line 9 and 45 is showing

Write the variables within int(). For example, rewrite line 9 as

if len(history_data) < int(frame_size):

1 Like

thanks for the solution :slightly_smiling_face::slightly_smiling_face::slightly_smiling_face: