Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def compute(first, second):
- if first > 10:
- return second * 2
- return second / 2
- def decide(start):
- seed = get_seed(start)
- attempt = 10
- while 1:
- try:
- first = get_first(seed)
- second = get_second(seed)
- third = get_third(seed)
- return compute(first, second, third) + 100
- except Exception, e:
- if attempt < 1:
- raise e
- attempt -= 1
Add Comment
Please, Sign In to add comment