\(\renewcommand\AA{\unicode{x212B}}\)
The aim of this exercise is to write a small Python algorithm that is able
to print to the Messages Box the first n
numbers of the Fibonacci series.
The series starts with 0, 1
and then the next term is the sum of the
two previous terms.
The algorithm should:
NTerms
NTerms
property is greater or equal to 0 when set in
the GUI.notice
level
and in the format: “Term 1 in the Fibonacci series is: 0”NTerms
property after it has been retrieved.As an additional exercise in understanding errors:
NTerms
is less than or equal
to 1000. If it is not then raise a RuntimeError
.Once finished check your answer with the provided Exercise 2 Solutions