Guest User

Untitled

a guest
Sep 14th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment