Loop to add previous three numbers for each number starting from 3 and then assign first , second , third to second , third , and curr to third respectively
for i in range ( 3 , n ) : NEW_LINE INDENT curr = first + second + third NEW_LINE first = second NEW_LINE second = third NEW_LINE third = curr NEW_LINE print ( curr , " ▁ " , end = " " ) NEW_LINE DEDENT