Created
January 25, 2020 07:48
-
-
Save Bundi-py/64f486a3d73a356749a3a2a4218d600f to your computer and use it in GitHub Desktop.
Program koji će prebrojati i potom ispisati sva unikatna slova i znakove u zadatom tekstu.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
poruka = input('Unesi tekst. Program će prebrojati koliko \nu njemu ima unikatnih slova i znakova? ') | |
slova = '' | |
for i in poruka: | |
if i not in slova: | |
if i != ' ': | |
slova = slova + i | |
print() | |
print('Ima', len(slova), 'slova i znakova:') | |
print(slova) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment