fork download
  1. import numpy as np
  2.  
  3. f = np.array(['Bonjour', 'Hello', 'Hallo', ])
  4. print(f.dtype)
  5.  
  6. for elem in f:
  7. print(len(elem))
Success #stdin #stdout 0.07s 20788KB
stdin
Standard input is empty
stdout
|S7
7
5
5