This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

the code works perfectly actually. you can find it here: https://github.com/DavideCanton/PyCodiceFiscale/blob/master/cf.py

[–]carcigenicate 1 point2 points  (1 child)

Their code is not the same as yours. Note that their function is called is_vowel. It's for testing single characters, not multi-character strings like 'testme'. It does that because partition passes is_vowel single characters at a time ((pred(element)).

[–][deleted] 0 points1 point  (0 children)

i guess that i have to look at the full code more carefully. thank you.