Ruby, Programming, Ruby on Rails, Web Development.
the two strings are printed in a single line that is because #print does not add a newline between different objects. However, #puts adds a newline (“\n” character) at the end of each output. So we can conclude that #puts adds a newline after each execution while #print does not. Wait! What about