Advertisement
Spocoman

06. Even Numbers

Feb 10th, 2022
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. lst = list(map(int, input().split(', ')))
  2. indexes = []
  3.  
  4. for i in range(len(lst)):
  5.     if lst[i] % 2 == 0:
  6.         indexes.append(i)
  7.  
  8. print(indexes)
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement