fork(1) download
  1. # your code goes here
  2.  
  3. def extend(val, list_=[]):
  4. list_.append(val)
  5. return list_
  6.  
  7. x1 = extend(10)
  8. x2 = extend(123, [])
  9. x3 = extend('a')
  10.  
  11. print "x1 = %s" % x1
  12. print "x2 = %s" % x2
  13. print "x3 = %s" % x3
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
x1 = [10, 'a']
x2 = [123]
x3 = [10, 'a']