Add Print Keyword
33
Print-Keyword.md
Normal file
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!"
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user