7. Nice Work! n-check mistake

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
7. Nice Work!
https://www.codecademy.com/en/courses/ruby-beginner-en-Zjd2y/0/7?curriculum_id=5059f8619189a5000201fbcb
<In what way does your code behave incorrectly? Include ALL error messages.>
It must be the “return” statement before these checking lines for script properly work:

 # Check for correct input!
  "n must be an integer" unless n.is_a? Integer
  "n must be greater than 0" if n <= 0

 Please fix it

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.