Created
November 6, 2015 16:28
-
-
Save objarni/4f13c441a5e9c755bd6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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