Welcome, guest | Sign In | My Account | Store | Cart
# the standard way
data = { 'red' : 1, 'green' : 2, 'blue' : 3 }

# a cleaner way
def dict(**kwargs): return kwargs

data = dict(red=1, green=2, blue=3)

History

  • revision 2 (22 years ago)
  • previous revisions are not available