Methods, Blocks, & Sorting, parameters & arguments problems


#1

This is my code:

def cubertino(n)
puts 8 ** 3
end

cubertino

Reply: Oops, try again. It looks like you didn't print the value of 8 ** 3 to the console

https://www.codecademy.com/en/courses/ruby-beginner-en-ET4bU/1/1?curriculum_id=5059f8619189a5000201fbcb

Can anyone see the error?


#2

I have a feeling that will cause ruby to protest and present you with an error message

-:1:in `cubertino': wrong number of arguments (given 0, expected 1) (ArgumentError)
        from -:5:in `<main>'

#3

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