Guest User

Untitled

a guest
Jun 14th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. def contains_e(s):
  2. return len(s) > 0 and ( s[0] == 'e' or s[0] == 'E' or contains_e(s[1:]) )
  3.  
  4. print contains_e("aeiou")
  5. print contains_e('foobar')
Add Comment
Please, Sign In to add comment