Create a Python script that takes in a positive integer as argument and prints out the Fibonacci sequence up to that number.
5
def fibonacci(n):
 a, b = 0, 1
 fibonacci = [a]
 
 while b < n:
 fibonacci.append(b)
 a, b = b, a + b
 
 return fibonacci

print(fibonacci(5))
# Output: [0, 1, 1, 2, 3]