modify and optimize code to cope with given requirment

- added case statement in '#get_fibonacci'
- remove unnecessary variable 'continue'.
- control unecessary argument passing in yield statement.
Code optimize

- Used if then instead of if else shorthand.