Skip to Content
Thith Meanth War!
Returning the Final String—Er, "Thtring"

Home stretch—now we want to display the Daffy Duckified string to the user. You can do that using the string interpolation we learned earlier:

my_string = "muchachos" print "Adios, #{my_string}!" # ==> "Adios, muchachos!"



Add a puts statement that uses string interpolation to show the user their transformed string.

Folder Icon

Take this course for free

Already have an account?