Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- number_list = [int(x) for x in input().split(", ")]
- print([idx for idx, number in enumerate(number_list) if number % 2 == 0])
- #2
- # number_list = list(map(int, input().split(', ')))
- #
- # even_indices = []
- #
- # for index, num in enumerate(number_list):
- # if num % 2 == 0:
- # even_indices.append(index)
- #
- # print(even_indices)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement