Mar-18-2020, 06:55 PM
Line 48 is your error. A few ways to fix, look at this code:
print(str) print(str == 'string') print(type('string')) print(str == type('string'))
Output:<class 'str'>
False
<class 'str'>
True
I think you are trying to see if y is a string. You can check the type, or you could try isinstance() to see if y is in the str class