Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Ruby Basics Ruby Syntax Variables

Ali .
Ali .
15,521 Points

Assign the string "Ruby" to a variable named language. Then assign the string "awesome" to a variable named description.

Assign the string "Ruby" to a variable named language. Then assign the string "awesome" to a variable named description. Then make a single call to puts and pass it two arguments: the language and description variables.

variables.rb
language = "Ruby"
description = "awesome"

puts language
puts description

4 Answers

Michael Hulet
Michael Hulet
47,913 Points

Pay attention to what the challenge is asking you to do here. It wants you to make a single call to puts, but you're making 2. You need to call puts once, but pass both language and description as parameters to the single puts call

Ali .
Ali .
15,521 Points

Hi Michael,

Thanks for the reply.

I got it wrong with this message ( Bummer! Please call "puts" only once.). I don't know how to make once puts.

Thanks again.

this does not help me, I tried calling these answers but still getting the same error. Please help.

Thanks.

Michael Hulet
Michael Hulet
47,913 Points

Please post a new question that includes the code you're using so someone can help you out

language = "Ruby" description = "awesome"

puts(language,description)

Matthew Williamson
Matthew Williamson
5,783 Points

language = "Ruby" description = "Awesome" puts(language,description)