Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = {"dragons": 100, "evil wizards": 100, "trolls": 100}
- def tl(env):
- licks = 252
- if len(env) == 0:
- return "It took 252 licks to get to the tootsie roll \
- center of a tootsie pop."
- else:
- total = sum(env.values())
- licks += total
- compare = [x for x in env.values()]
- high = max(compare)
- print high
- parse = [k for k, v in env.iteritems() if v == high]
- toughest = ''.join(parse)
- return "It took {} licks to get to the tootsie roll center of a tootsie \
- pop. The toughest challenge was {}.".format(licks, toughest)
- #
- # stuff = {"dragons": 100, "evil wizards": 110, "trolls": 50}
- # dv = 50
- # inv_map =
- # print inv_map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement