There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
Agree with a comment or answer? Like () to up-vote the contribution!
When I write the code into the editor and run it, the terminal will not allow me to enter my name. After 30sec or so (I haven’t timed it) it tells me “Execution expired”. Any ideas as to what the problem is?
Hello All, I’ve been experiencing exactly the same issue: cannot type anything at all in the terminal, no matter how well and clean I’ve written that simple code.
The interface is suspect, and gets is probably not recommended. The workaround is to define your input values as literals then see the code operation through its paces.
As expected. Suggest not printing on that line, however.
first_name = gets.chomp
puts first_name
The timeout is very quick, so as long as we click the cursor, type a name and enter within a matter of seconds, the input should be accepted and accessed by variable name.
I was having the same problem as other above, but it’s the interface, not the code that’s the problem.
I typed the code exactly as it says in the instructions and typed my name in the terminal and nothing happened. I ran it several times and still nothing happened. I left it idle for a few minutes, ran it again and it worked.
I must say that the instructions for the exercises are not very clear at all for a beginner. It’s taken me two hours to get this far because the instructions are so ambiguous.