Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_boundaries(target, margin):
- low_limit = target - margin
- high_limit = target + margin
- return low_limit, high_limit
- low, high = get_boundaries(100, 20)
- #we added this print statement just to sanity-check our solution:
- print("Low limit: "+str(low)+", high limit: "+str(high))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement