Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Čermák Petr
Prm1
Commits
5d1c33c2
Commit
5d1c33c2
authored
Nov 08, 2020
by
cermak
Browse files
Nove reseni ruznych slov
parent
d9dbbbb0
Pipeline
#18456
passed with stage
in 1 minute and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
06-rezy/priklady.py
View file @
5d1c33c2
...
...
@@ -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
(
"+"
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment