fork download
  1. # your code goes here
  2. import array
  3. import random
  4.  
  5. random.seed(1234)
  6. a = array.array('B', [random.randint(0, 100) for _ in range(10)])
  7. print(a)
  8. print(a[0])
  9. print(a[1])
Success #stdin #stdout 0.01s 36952KB
stdin
Standard input is empty
stdout
array('B', [99, 56, 14, 0, 11, 74, 4, 85, 88, 10])
99
56