Relative Content

Tag Archive for pythonif-statement

Python, if statement executes but condition is false

i got a task to go over a string and check if its reversable or almost reversable (removing 1 char from the string and it becomes reversible) and i need to return True or False,
in the code below it enters the if even when the two chars are the same.