This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
nman1444's profile picture

Why is my simple "hello world" program doing this?

Started by nman1444, 06 April 2013 - 05:47 PM
nman1444 #1
Posted 06 April 2013 - 07:47 PM
Followed a tutorial to do this, but every time I run it, this happens. Please help?

This is the message it brings when i try to run it.



This is the actuall code of the program

1lann #2
Posted 06 April 2013 - 07:50 PM
\n is used as a string for a new line, and is unnecessary when using print since that automatically adds a new line, unless you're trying to do this


To Do List

Make flying rings...

Pump...

Try removing the \n or if that wasn't what you wanted, move the \n to be within the quotation marks
remiX #3
Posted 07 April 2013 - 12:09 AM
If you want to have a line between them, put the \n inside the quotation marks, at the end of the sentence.
TheOddByte #4
Posted 07 April 2013 - 11:19 AM
And to show what these guys have been saying

print("To Do List \n")
print("Make flying rings for everyone \n")
print("Pump lava from volcano into tanks \n")
print("Cycle quarry for max effiency\n")
print("To be continued...")