Skip to content

Input Output

Printing to the console

In Radon, we can print to the console using the print function. It is followed by the argument in parentheses. The argument are mandatory. It takes only one argument. We can concatenate data types using the + operator.

print.rn
print("Hello" + ", " + "World!") # Output: Hello, World!

Input from the console

In Radon, we can take input from the console using the input function. It is followed by the argument in parentheses. The argument are mandatory. It takes only one argument. We can concatenate data types using the + operator.

input.rn
name = input("Enter your name: ")
print("Hello, " + name + "!") # Output: Hello, World!