soucet_bodu #70

Merged
ledoian merged 2 commits from soucet_bodu into master 2 weeks ago
om commented 2 weeks ago
Collaborator
There is no content yet.
om added 2 commits 2 weeks ago
ledoian reviewed 2 weeks ago
suma_bodu = 0
hodnoceni = list(hodnoceni)
for i in hodnoceni :
if i.body != None : suma_bodu += i.body
Poster
Owner

Jen poznámka: None je lepší porovnávat pomocí is (resp. is not): if i.body is not None: ...

(Je to běžnější kód a možná lehce rychlejší)

Jen poznámka: `None` je lepší porovnávat pomocí `is` (resp. `is not`): `if i.body is not None: ...` (Je to běžnější kód a možná lehce rychlejší)
ledoian merged commit 502588fd3a into master 2 weeks ago
ledoian deleted branch soucet_bodu 2 weeks ago
The pull request has been merged as 502588fd3a.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.