def fib2(n): #return Fibonacci series up to n
"""Return a list containing the Fibonacci series up to n."""
result = []
a, b = 0, 1
while b < n:
result.append(b) #see below
a, b = b, a+b
return result
#===========================================
f35 = fib2(35) #call it
print (f35) #write the result
Okay so that's what I have so far. That gives the output [1, 1, 2, 3, 5, 8, 13, 21, 34]. Which is fine, but I need it reversed. Showing [34, 21, 13, 8, 5, 3, 2, 1, 1]. I just can't figure out how to apply the reversed command or use the [::-1] method.
I keep getting a bunch of errors if I try to apply any of the above methods. I'm pretty new at this. Thank you for your time.