Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##найти повторные вхождения
- x = [int(i) for i in input(). split()]
- y = int(input())
- again = []
- for i in range(len(x)):
- if x[i] == y:
- again.append(i)
- if len(again) == 0:
- print("Отсутствует")
- else:
- print(*again)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement