+ 1
How do i do a line of space on the output?
4 Respuestas
+ 1
I don't know Ruby, but put an empty print line between them
in python:
print("Hello World")
print()
print("I love python")
in Ruby:
puts "Hello World"
puts ""
puts "I love Python"
Both would get the output space you want. Also, both languages use "\n" to get a new line. so both of these would also get the result
print("Hello World\n\nI love Python")
puts "Hello World\n\nI love python"
+ 1
Thanks for the advice
0
give an example of the output you want to get.
word space word
word
space
word
what are we looking for?
0
puts "Hello world"
print "I love python"
----------output----------
Hello world
I love python
-------Instead of-------
Hello world
I love python