Advertisement
FelipeNeto2

Função com múltiplos retornos

Dec 9th, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. def get_boundaries(target, margin):
  2.   low_limit = target - margin
  3.   high_limit = target + margin
  4.   return low_limit, high_limit
  5.  
  6. low, high = get_boundaries(100, 20)
  7.  
  8. #we added this print statement just to sanity-check our solution:
  9. print("Low limit: "+str(low)+", high limit: "+str(high))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement