Commit 5d1c33c2 authored by cermak's avatar cermak
Browse files

Nove reseni ruznych slov

parent d9dbbbb0
Pipeline #18456 passed with stage
in 1 minute and 47 seconds
......@@ -16,6 +16,10 @@ def spocitej_ruzna_slova(radek):
slova.append(slovo)
return len(slova)
# trikove reseni s pouzitim setu
def spocitej_ruzna_slova2(radek):
return len(set(spocitej_slova(radek)))
def vyhodnot_vyraz(vyraz):
soucet = 0
for clen in vyraz.split("+"):
......
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