Create a module called fibonaccitest in the module write a


Having issues with this assignment. Can't get the correct return for 4 part 1. Please help?!

  1. Create a module called fibonacciTest.
  2. In the module, write a function called getFibSeq that:
    1. Prompts the user for a valid input
    2. Returns a list of the fibonacci sequence up to that number
  3. Write a try-catch block that will catch the two exceptions listed in #4 below
  4. Write the following print statements to verify that the function and try-catch work
    1. with user input: 100print out [1,1,2,3,5,8,13,21,34,55,89]
    2. Exception 1: with user input: -1print out 'Input must be greater than 0'
    3. Exception 2: with user input: 'hello'print out 'Sorry, integer greater than zero only'

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Create a module called fibonaccitest in the module write a
Reference No:- TGS01656275

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)