fork download
  1. # your code goes here
  2.  
  3. def double (x):
  4. return x*2
  5.  
  6. doubled = list(map(double,[1,2,3,4,5]))
  7. print(doubled)
Success #stdin #stdout 0.07s 14116KB
stdin
Standard input is empty
stdout
[2, 4, 6, 8, 10]