public:t-malv-15-3:1
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:t-malv-15-3:1 [2015/08/27 07:49] – orvark | public:t-malv-15-3:1 [2024/04/29 13:33] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 155: | Line 155: | ||
| </ | </ | ||
| - | ==== Possible Solutions ==== | + | ===== Possible Solutions |
| <code python> | <code python> | ||
| Line 166: | Line 166: | ||
| #2 | #2 | ||
| def is_male(proper_name): | def is_male(proper_name): | ||
| - | return proper_name[-3::] == " | + | return proper_name[-3: |
| #return proper_name.endswith(" | #return proper_name.endswith(" | ||
| - | # | + | # return ... and ' ' in proper_name and proper_name.istitle() and " |
| - | #proper_name.istitle() | + | # return ... and proper_name.find(' |
| - | #proper_name.find(" | + | |
| #3 | #3 | ||
| Line 186: | Line 185: | ||
| #5 | #5 | ||
| - | sorted(w for w in set(text6) if w.startswith(' | + | sorted(w for w in set(text6) if w.startswith(' |
| - | sorted(w for w in set(text6) if w.upper())) | + | sorted(set(w for w in text6 if w.isupper()))) |
| #6 | #6 | ||
/var/www/cadia.ru.is/wiki/data/attic/public/t-malv-15-3/1.1440661773.txt.gz · Last modified: 2024/04/29 13:32 (external edit)