def foo(m: str):
nums = map(str, range(0, 10))
for num in nums:
if m.count(num) > 1:
return True
return False
m = input()
print('YES' if foo(m) else 'NO')
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
def foo(m: str):
nums = map(str, range(0, 10))
for num in nums:
if m.count(num) > 1:
return True
return False
m = input()
print('YES' if foo(m) else 'NO')