Methods, Blocks, & Sorting

Methods With Arguments

Good! Now let's make our method a bit more complex by adding arguments and a return statement.

def double(n)
  return n * 2
Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.