Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 17th, 2012  |  syntax: None  |  size: 0.16 KB  |  views: 41  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. #word would be "abraham"
  3. #guess would be "a"
  4. index = 0
  5. while index < len (word):
  6.         if word [index] == guess
  7.                 return index
  8.                 index = index +1
  9. return "not found"
clone this paste RAW Paste Data