Its just not working


#1



https://www.codecademy.com/courses/ruby-beginner-en-MxXx5/0/1?curriculum_id=5059f8619189a5000201fbcb


After putting in the answers and clicking submit, only the first answer prints and the screen does not change.


print "john"
first_name = gets.chomp
first_name.capitalize!

print "doe"
last_name = gets.chomp
last_name.capitalize!

print "danville"
city = gets.chomp
city.capitalize!

print "tri state area"
state = gets.chomp
state.upcase!

puts "Your name is #{first_name} #{last_name} and you're from #{city}, #{state}!"


#2

HI in your print statement should aske to enter something ... the first one...

print "john"
first_name = gets.chomp
first_name.capitalize!

should be something like that

print "What's is your name?"
first_name = gets.chomp
first_name.capitalize!

then when you Save & Submit Code the code you should type your name in the console then press Enter to go to the next question


#3

Was i not supposed to edit the code with my answers? And also i tried
refreshing the page and not changing anything, when i clicked submit the
blue gear would stay turning like the first time. I will try typing the
anwers into the console next time.


#4

Did you pass the lesson?... if not can you post a screenshot of your code?


#5

I'm having the same issue here, it seems to not be working. The final line shows up "Your name is and you're from , !
nil"


#6

Hi @blueseer, I just figured this out. We're not meant to change the actual code, but to run it as is, and then type our responses after.


#7

2 posts were split to a new topic: Pls help me on Formatter


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.