Advertisement
1nikitas

Untitled

Apr 12th, 2020
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. ##найти повторные вхождения
  2. x = [int(i) for i in input(). split()]
  3. y = int(input())
  4. again = []
  5.  
  6.  
  7. for i in range(len(x)):
  8.   if x[i] == y:
  9.     again.append(i)
  10. if len(again) == 0:
  11.   print("Отсутствует")
  12. else:
  13.   print(*again)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement