I just started coding programs with python. As a challenge I wanted to program something to print out the Fibonacci Numbers. It looks like I've done what I wanted to do (I checked the first few numbers) and because I just started coding, I obviously don't know if this is a legitimate code and somebody would code it like that. Keep in mind that I have only done some basic lessons in python so I just want to get some feedback and advice for better code.
def spiral(sequence): numbers =  for i in sequence: numbers.append(0) if i == 0 or i == 1: numbers[i] = 1 continue numbers[i] = numbers[i-1] + numbers[i-2] return numbers times = range(int(input("How many times do you want to go through? "))) fibonacci = spiral(times) print(fibonacci)