daily pastebin goal
52%
SHARE
TWEET

Names of max variable set

a guest Dec 12th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  def solution():
  2.     a = 3
  3.     b = 2
  4.     c = 8
  5.     d = 9
  6.     e = 9
  7.     for i in range(10):
  8.         i += 1
  9.     m = max(a,b,c,d,e) + 1
  10.     return (m - 1, { variable_name for (variable_name, value) in locals().items() if value == m - 1 })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top