daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. l = ['a','e','i','o','u']
  2.  
  3. def consonant(ch):
  4.  
  5. if ch in l:
  6.     return False
  7. else:
  8.     return True
  9.  
  10. x = consonant(g) # Doesn't work NameError g is not defined
  11. print(x)
  12.    
  13. x = consonant('g')  // Works
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