Python 3, (削除) 53 (削除ここまで) (削除) 50 (削除ここまで) 45(削除) 45 (削除ここまで) 44 bytes
f=lambda n:n and[n] ifand[n]if n<2else[f(n-1),f(n-2)]
Thanks @Dominic van Essen save 3 bytes Save.
Save 5 bytes changing the first if condition with and.
Thanks @user save 1 byte.
Python 3, (削除) 53 (削除ここまで) (削除) 50 (削除ここまで) 45 bytes
f=lambda n:n and[n] if n<2else[f(n-1),f(n-2)]
Thanks @Dominic van Essen save 3 bytes
Save 5 bytes changing the first if condition with and
Python 3, (削除) 53 (削除ここまで) (削除) 50 (削除ここまで) (削除) 45 (削除ここまで) 44 bytes
f=lambda n:n and[n]if n<2else[f(n-1),f(n-2)]
Thanks @Dominic van Essen save 3 bytes.
Save 5 bytes changing the first if condition with and.
Thanks @user save 1 byte.
Python 3, (削除) 53 (削除ここまで) 50(削除) 50 (削除ここまで) 45 bytes
f=lambda n:0ifn n<1else[n]ifand[n] if n<2else[f(n-1),f(n-2)]
Thanks @Dominic van Essen save 3 bytes
Save 5 bytes changing the first if condition with and
Python 3, (削除) 53 (削除ここまで) 50 bytes
f=lambda n:0if n<1else[n]if n<2else[f(n-1),f(n-2)]
Thanks @Dominic van Essen save 3 bytes
Python 3, (削除) 53 (削除ここまで) (削除) 50 (削除ここまで) 45 bytes
f=lambda n:n and[n] if n<2else[f(n-1),f(n-2)]
Thanks @Dominic van Essen save 3 bytes
Save 5 bytes changing the first if condition with and