fork download
  1. char = '2'
  2. print '2'*['0', 'a', 'b', 'c', '2'].index(char)
Success #stdin #stdout 0.01s 7092KB
stdin
Standard input is empty
stdout
2222