Teacher:In this task, you are given an input list. A list contains several comma-separated items written within brackets. You need to return the position of all the numerical elements in the given list in order. Assume the position of the 1st element to be 1. Return -1 if no numerical element is in the list.
Teacher: Now, understand the problem? Solve this instance: ['8591', '5639', '9747', 'D', 'Z', '4807', 'y', '9975', '7333', '3637', 'N', 'J', 'm', '7597', '7311', 'R', 'Y', '9433', 'r', 'Y', '8603', 'd', 'o', 'e', 'b', '9979', '2917', 'c', '1841', '1617', 'w', '8863', '9797', '5909', '3001', 'j', 'K', '3263', '8683', '3353']
Student:
1, 2, 3, 6, 8, 9, 10, 14, 15, 18, 21, 26, 27, 29, 30, 32, 33, 34, 35, 38, 39, 40