I need to compare two strings (direct and reversed), which are made of integer numgers. I try next code
str(1001) is str(1001)[::-1]
but it return False
? Interesting, in IDLE output is the same/
I need to compare two strings (direct and reversed), which are made of integer numgers. I try next code
str(1001) is str(1001)[::-1]
but it return False
? Interesting, in IDLE output is the same/