daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top