Console input and output


print

print is a function that sends data to the console. After the data, it sends a newline character to the console.

Hello
world!
42
>>

prin

prin also sends data to the console, but it does NOT send the newline character .

Helloworld!42
>>

probe

Described here (because it fits better there, following mold).

input

Inputs a string from the console. Notice that any number typed on console are converted to a string. newline character is removed.

Enter a name: John
John is 4 characters long
>>

ask

Same as input, but displays a string.

What is your name? Andre
your name is Andre
>>

results matching ""

    No results matching ""