I have an array called mylist, which has 3 elements. And I want to strip() every element in that array. Here is code
mylist = [' A ', ' B ', ' C']
for x in len(mylist):
mylist[x] = mylist[x].strip()
print(mylist)
This code gave an error
TypeError: 'int' object is not iterable