Based on reading the 2.7 documentation, the following code should step through correctly from what I can tell. I call raw_input(text) to get an input for variable age, but it always returns You can see rated R movies.
import sys
age = raw_input("What is your age? ")
if age >= 17:
print "You can see rated R movies."
elif age < 17 and age > 12:
print "You can see a rated PG-13 movies."
else:
print "You can only see PG movies!"
Based on my logic, if the value passed to age is not greater than or equal to 17, it should move onto the next statement. That is not the result I get though. It always returns the Rated R line. For example I input 3 and it still gives me the rated R response. If I flip the > to < then it always returns the "You can only see PG movies!" line.
Thoughts?