Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = [ 1,2,3,5,"56", 6]
- for index, value in enumerate(a):
- if type(value) is str:
- a[index] = int(value)
- print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement