Guest
Public paste!

Untitled

By: a guest | Mar 22nd, 2010 | Syntax: Python | Size: 0.39 KB | Hits: 71 | Expires: Never
Copy text to clipboard
  1. x='say -v Vicki "%s"'
  2. import os
  3. ask=raw_input
  4. say=os.system
  5. say(x%"hello, what is your name?")
  6. say(x%"hello "+ask("what's your name?"))
  7. say(x%"how are you today?")
  8. ask("how are you today?")
  9. say(x%"that is good")
  10. say(x%'you like macs right?')
  11. likes_macs=ask('you like macs right?')
  12. if likes_macs.lower()in["no","nup","negitive"]:
  13.         say(x%"well. you should")
  14. else:
  15.         say(x%"brilliant!")