Add Print Keyword

2026-01-09 11:45:11 +11:00
parent 169c5a4a3f
commit 611c6d3740

33
Print-Keyword.md Normal file

@@ -0,0 +1,33 @@
# Print
Keyword: `print` (or `stdout`)
Syntax: `print $str`
Time Complexity:
## Overview
The `print` keyword appends its argument to stdout.
## Example usage
This program prints "Hello, world!" to the terminal
```py
print "Hello, world!"
```
# Println
Keyword: `println` (or `stdlnout`)
Syntax: `println $str`
Time Complexity:
## Overview
The `println` keyword appends its argument to stdout, then flushes the buffer.
## Example usage
This program prints "Hello, world!" and flushes the terminal
```py
println "Hello, world!"
```