Skip to content

Instantly share code, notes, and snippets.

@objarni
Created November 6, 2015 16:28
Show Gist options
  • Save objarni/4f13c441a5e9c755bd6e to your computer and use it in GitHub Desktop.
Save objarni/4f13c441a5e9c755bd6e to your computer and use it in GitHub Desktop.
# coding: utf-8
def ask(s):
print("Duck: " + s)
input("You: ")
print("")
def rubberduck():
print("""
,-.
,--' ~.).
,' `.
; (((__ __)))
; ( (#) ( (#)
| \_/___\_/|
," ,-' `__". .
( ( ._ ____`.)--._ _
`._ `-.`-' \(`-' _ `-. _,-' `-/`.
,') `.`._)) ,' `. `. ,',' ;
.' . `--' / ). `. ;
; `- / ' ) ;
\ ') ,'
\ ,' ;
\ `~~~' ,'
`. _,'
`. ,--'
`-._________,--'
""")
ask("What are you trying to do?")
ask("What is happening instead?")
ask("Do you have a hypothesis of why that is happening?")
ask("How would you check the hypothesis (or its opposite)?")
ask("If you came this far you either solved the problem, or got a quick way to investigate an hypothesis.")
if __name__ == "__main__":
rubberduck()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment