Untitled

Anonymous
Python
09/25/2022 11:32 AM
270 B
15
Indexable
Never
# import fungsi counter
from collections import Counter

string = input()

# fungsi counter hitung frekuensi char muncul
freq = Counter(string)

# cek panjang panjang string sama dengan frekuensi

if(len(freq) == len(string)):
    print("benar")
else:
    print("salah")
Editor is loading...