Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print "Let's practice everything."
- print "You\'d need to know \' bouth esacape with \\ that do \n newline and \t tabs."
- poem = """
- \t The lovely world
- with logic so firmly planted
- cannot discert \n the needs of love
- nor comprehend passion from intuilion
- and requires an explonantion
- \n\t\t there is none
- """
- print "_ _ _ _ _ _ _ _ "
- print poem
- print "_ _ _ _ _ _ _ _ "
- five = 10 -2 +3 - 6
- print "This should be five: %s" % five
- def secret_formula(started):
- jelly_beans = started * 500
- jars = jelly_beans / 1000
- crates = jars / 100
- return jelly_beans, jars, crates
- start_point = 10000
- beans, jars, crates = secret_formula(start_point)
- print "With a starting point of : %d " % start_point
- print "We'd have %d beans, %d jars, and %d crates." %(beans, jars, crates)
- start_point = start_point / 10
- print "We can also do that this way:"
- print "We'd have %d beans, %d jars, and %d crates." % secret_formula(start_point)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement