I wanted to create a numpy array with same number of digits in each element. Suppose:
User_001, User_002,....,User_123
How can I do this?
I tried as follows:
a1 = np.array([f'User_{i}' for i in range(124)])
But it gives me:
User_1, User_2, User_3......,User_123 which I do not want. Any help?
-
4Maybe this will help: stackoverflow.com/questions/6869999/….Tom S– Tom S2021-06-29 08:59:20 +00:00Commented Jun 29, 2021 at 8:59
Add a comment
|