Commit ae1a29a3 by Patryk Czarnik

policz samogłoski v23

parent 32985f06
SAMOGLOSKI = {'a', 'e', 'i', 'o', 'u', 'y'}
SAMOGLOSKI = {'a', 'e', 'i', 'o', 'u', 'y', 'ą', 'ę', 'ó'}
tekst = input('Napisz coś:\n')
ile = 0
for znak in tekst:
for znak in tekst.lower():
if znak in SAMOGLOSKI:
ile += 1
......
tekst = input('Napisz coś:\n')
ile = 0
for znak in tekst.lower():
if znak in 'aeiouyąęó':
ile += 1
print('Liczba samogłosek:', ile)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment