fork download
  1.  
  2. A = [2, 8, 29, 34, 54, 61, 73, 89, 97, 101]
  3. B = [201, 309, 454, 540, 602, 750, 889, 973, 1003, 1120]
  4. print(B[A.index(2)])
  5. print(B[A.index(8)])
  6. print(B[A.index(42)])
Runtime error #stdin #stdout #stderr 0.01s 9016KB
stdin
Standard input is empty
stdout
201
309
stderr
Traceback (most recent call last):
  File "prog.py", line 7, in <module>
ValueError: 42 is not in list