fork download
  1. a=[10,20,30,40,50]
  2. b=a[0:2]
  3. print(b)
Success #stdin #stdout 0.1s 14104KB
stdin
Standard input is empty
stdout
[10, 20]