Ad
  • Custom User Avatar
    • in what language?
    • with "test" or "attempt"?

    (I thought I already fixed that... :s )

  • Custom User Avatar

    def dbl_linear(n,y=0,z=0,u=[1]):

    your problems comes from that part: u=[1]. You felt into pyhton's mutable default argument trap. if you test 2 calls to your function locally, you'll see it doesn't output the correct numbers anymore the second time.

  • Custom User Avatar

    "My solution doesn't work for some reason" is not an issue.