soucet_bodu #70

Merged
ledoian merged 2 commits from soucet_bodu into master 1 week ago
om commented 1 week ago
Collaborator
There is no content yet.
om added 2 commits 1 week ago
ledoian reviewed 1 week ago
suma_bodu = 0
hodnoceni = list(hodnoceni)
for i in hodnoceni :
if i.body != None : suma_bodu += i.body
ledoian commented 1 week ago
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 1 week ago
ledoian deleted branch soucet_bodu 1 week 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.