Creating a Procedure with ParametersΒΆ

Is there another way to make it easy to change the story, rather than creating a string and then splitting it into pieces? We can create a procedure with parameters and then pass in the input values when we call the procedure as shown below.

Before you keep reading...

Runestone Academy can only continue if we get support from individuals like you. As a student you are well aware of the high cost of textbooks. Our mission is to provide great books to you for free, but we ask that you consider a $10 donation, more if you can or less if $10 is a burden.

Creating a procedure with parameters makes it easy to customize the madlib stories without having to split a string. The split function is very useful when you read data from a file or from a website.

You have attempted 1 of 3 activities on this page