User Tools

Site Tools


public:t-malv-15-3:1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:t-malv-15-3:1 [2015/08/27 07:50] orvarkpublic:t-malv-15-3:1 [2024/04/29 13:33] (current) – external edit 127.0.0.1
Line 166: Line 166:
 #2 #2
 def is_male(proper_name): def is_male(proper_name):
-    return proper_name[-3::] == "son"+    return proper_name[-3:] == "son"
     #return proper_name.endswith("son")     #return proper_name.endswith("son")
  
-#proper_name.find(' ') +return ... and ' ' in proper_name and proper_name.istitle() and "Gillian" in proper_name 
-#proper_name.istitle() +# return ... and proper_name.find(' 'and proper_name.istitle() and proper_name.find("Gillian")
-#proper_name.find("Gillian")+
  
 #3 #3
Line 186: Line 185:
  
 #5 #5
-sorted(w for w in set(text6) if w.startswith('z')) +sorted(w for w in set(text6) if w.startswith('z')) # w[0] == 'z' 
-sorted(w for w in set(text6if 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.1440661823.txt.gz · Last modified: 2024/04/29 13:32 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki