age = raw_input("How old are you? ")
print(age)
if age>= 18:
print("You can vote!")
I am running this code on python 2.7. I was expecting to get an error but I didn't. I thought variable age would have a string value like '21'. This way, when I compare age>= 18
, it would flag me saying you cannot compare string and int. But it did not. It ran fine.