PDocs 3.1: Displaying Text - GitbyteMaster/PRIME-Lang GitHub Wiki

Displaying Text

To display text, the built-in system module must be imported. To learn how to import the module, click here. The correct syntax of the command is:

system.display(*);

If you have programmed before, you would know that there is only one argument (or items required) in this type of function. Now let's try adding text to our function.

system.display("hello world");

As we can see, we've added the words "hello world!" to our line of code. To execute our script, add your .prime file to the PRIME directory (C:/Users/[Your Windows Username]/Desktop/PRIME), and open Prime.py. In the console, you should see what you typed. Now, try typing in your own text.

system.display(*);

Type in any text surrounded by " within the parenthesis and it should display when you execute it. If not, you either must rename the PRIME directory, or you formatted the code wrong. If you don't need to type in anything though, don't! This will lead to an error.

Next - Prime Docs 3.2: Collecting User Input