PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#import __hello__
#Remove triple double quotes
#from the code you want to test;
#c variables are used to count
#the number of executions,
#uncomment if you want to test yourself
#Do not copy and paste,
#read it,
#understand it,
#and then
#do it yourself!
#If you just copy and paste,
#you won't be learning anything.
"""
#c=[0]
def f(n):
#c[0]+=1
if n<=1:
return n
else:
return f(n-1) + f(n-2)
for i in range(int(input('Enter a number. \n'))):
print(f(i))
#print(c)
"""
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run