Ad
  • Custom User Avatar

    You cannot extend an integer to a list, you can only append it. Also, your code fails for cases like tribonacci([1, 1, 1], 1) (your code returns [1, 1, 1] whilst the output should be [1])