Ad
Fundamentals
Games
Code
Diff
  • def riddle(w):
        return w.index("?")
    • def riddle(w, l=0):
    • return l if w=='?' else riddle(w[1:], l+1)
    • def riddle(w):
    • return w.index("?")