Hi I am new to ruby and I am trying to create a first a last name variables from a single user input line and then concatenate their full name back to them. This is what I have but I don't know if I am doing it correctly.
def first
@first
end
def last
@last
end
print "Enter your first and last name: "
first = gets.chomp
last = gets.chomp
print "Hello, " + @first + @last + "!"
end