+ 1

How do i do a line of space on the output?

23rd Apr 2017, 10:33 PM
â–șâ–ș Ferontwix ◄◄
â–șâ–ș Ferontwix ◄◄ - avatar
4 Answers
+ 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"
23rd Apr 2017, 11:02 PM
LordHill
LordHill - avatar
+ 1
Thanks for the advice
23rd Apr 2017, 11:04 PM
â–șâ–ș Ferontwix ◄◄
â–șâ–ș Ferontwix ◄◄ - avatar
0
give an example of the output you want to get. word space word word space word what are we looking for?
23rd Apr 2017, 10:52 PM
LordHill
LordHill - avatar
0
puts "Hello world" print "I love python" ----------output---------- Hello world I love python -------Instead of------- Hello world I love python
23rd Apr 2017, 10:56 PM
â–șâ–ș Ferontwix ◄◄
â–șâ–ș Ferontwix ◄◄ - avatar