What is the cause of unintentional infinite loops in my code in Python 2.7 but in Python 3.5 gives me error message?
Python 3.5 gives TypeError: unorderable types: str() > int()
, How should I resolve it?
Program
condition = '2'
while condition > 5:
print 'test'