In [ ]:
import this

In [ ]:
help

In [ ]:
help(dir)

In [ ]:
dir()

In [ ]:
ls

In [ ]:
print "hello there"

In [ ]:
print "Hello there %s" % "Ryan"

In [ ]:
name = ["Ryan", "Scott", "Brown"]
# Let's expand these names out into arguments to the format function
print "Hello there {} {} {}".format(*name)
# Equivalent call
print "Hello there {} {} {}".format("Ryan", "Scott", "Brown")

In [ ]:
ryansb = dict(name="ryansb", year=1, occupation="DevOp")
# Do the same thing, but expand the dictionary into named arguments
print "hello there {name} you are a {occupation} in your {year} year".format(**ryansb)
# Equivalent call
print "hello there {name} you are a {occupation} in your {year} year".format(name="ryansb", year=1, occupation="DevOp")

In [ ]: