I am not able to type on the console, what am I missing?


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>

```

Replace this line with your code.

<do not remove the three backticks above>

#2

You’re missing a description of what is happening


#3

print "what is your first name ?"
first_name = get.chomp
2/7 exercise Prompting the user
I tried typing on the console to answer this but cannot type there.


#4

print "What’s your first name? "
first_name = gets.chomp
first_name.capitalize!

print "What’s your last name? "
last_name = gets.chomp
last_name.capitalize!

print "What city are you from? "
city = gets.chomp
city.capitalize!

print "What state or province are you from? "
state = gets.chomp
state.upcase!

puts “Your name is #{first_name} #{last_name} and you’re from #{city}, #{state}!”


Hi, little help with an exercise
#5

So you entered that code in the editor, and when you run it the terminal asks for your first name, but when you click the terminal and start typing, no characters show up?

If that’s what’s going on the only thing I can suggest is to try chrome/firefox

P.S. when you post code, make sure to mark it as code in the editor so that it’s kept intact and not subjected to forum formatting


#6

Will try this. Thanks.
Will remember to type code in the editor next time.


#7

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