The error came up, because you did used invalid syntax.
elif is being used within conditional structures, it is being used after a if.
You also have one = instead of ==.
Valid Syntax for that would look like
And you save files with an extension .py or .pyw isn't important which one!
Double click on that file should open up a MS-DOS or a Terminal window, if python was properly installed on the system.
elif is being used within conditional structures, it is being used after a if.
You also have one = instead of ==.
Valid Syntax for that would look like
Code:
if b == 1:
print "Some"
elif b == 2:
print "thing"
else:
print "this"
And you save files with an extension .py or .pyw isn't important which one!
Double click on that file should open up a MS-DOS or a Terminal window, if python was properly installed on the system.