I want to check for a sub letter so I wrote this code (Python 2.7):
print text
if ('e' or 'E') in text:
text = "%s"%float(text)
print text
as suggested here.
text is a variable which changes, curently it has the value: 0E-7
However this doesn't work. When I debug it jumps over the if block.
Why the condition is false?