Paper Number 2
Paper Number 2
Upload your answer using given template to the course web link “Paper Number 2”
Grading Sheet:
1) Program is compiling. 2 marks
2) Program is running successfully. 2 marks
3) Program takes the input number as integer. 2 marks
4) Correct implementation Fibonacci function. 6 marks
5) Correct output 2 marks
6) Use of loop correctly 4 marks
7) Include comments and properly indented. 2 marks
8) Plagiarism testing tool results:…………………………..
def FIBONACCI(n):
if n <= 1:
return n
else:
def main():
while True:
try:
print({number})
if number==-1:
break
else :
except ValueError:
main()