iminur() – My First Python Script

So I’ve been learning Python this week, and coming from a PHP background, it’s been a bit difficult wrapping my head around a language where arrays are called “lists” (or “tuples” when they’re “immutable”), associative arrays are called “dictionaries,” everything is an object, and hierarchies are defined by layers of obsessively controlled white space. That said, after a bit of fooling around in IDLE, I present to you my very first Python script, posted here for your admiration and amusement:

def iminur():
a = raw_input("A Noun: ")
b = raw_input("A Verb: ")
c = raw_input("Another Noun: ")
if (b.endswith('ing') == 0):
b += 'ing'
x = "im in ur %s %s ur %s" % (a, b, c)
print x.upper()

That is all. Note how it checks to see if you entered the verb in the progressive tense and then adds “ing” if you haven’t. I’m in your Python, correcting your verb tenses.