0
I’m trying to compare two strings, one comes from the database as an array, the other is written by hand:
string = str(profile[1]) #Carlos Gimenes
print(string == str('Carlos Gimenes'))
#Retorna false
I have tried several ways and I can’t make this return true, by displaying the type of the variable is returned that both are <class 'str'>
, still the returned value continues as false.
project link:https://github.com/CaduGimenes/recognizer
needless to convert using str, redundant. I do a simple debug to ensure even if equal: string = str(profile[1]); string2 = 'Carlos Gimenes'; print(string, string2, Sep=' n')
– Elton Nunes