Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = int(input())
- arr =[]
- count = 0
- while num:
- arr.append(num%10)
- num//=10
- c = 0
- while c<len(arr):
- check = False
- j=1
- while j<len(arr):
- if arr[c] == arr[j]:
- del arr[j]
- check = True
- else:
- j+=1
- del arr[c]
- if check:
- count+=1
- print(count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement