QOO-OOKALAN
Jump to navigation
Jump to search
QOO-OOKALAN is almost same as Python, but there is what different:
| QOO-OOKALAN | Python | Description |
|---|---|---|
| # | N/A | The line will executes reversed order instead of standard order |
| a>b | range(a,b) | Shorted for ...
|
| a..b | range(a,b) | List. |
in keyword |
in or N/A |
Like Python's in keyword, but after a counted-based loop, can used to define bounds.
|
| x%%y | x%y=0 | If x is multiple of y |
| c | ??? | Chooses which value the a is multiple of, overwise returns nothing |
| @ | in or N/A |
QOO-OOKALAN/Python's in shorted keyword
|
| s~b,c | ??? | s String, but only characters (1-indexed) from b...c |
| out s | print(s) | Printing Function. |
| n*v | v=n; | Creates an anonymous variable. Only exist in current line of code. With name of s and value of v |
| cn | n*c | For golfing: Multiples result by c, but c must to be a constant number and n must to be a variable name |
| Omitting assignment variable | ??? | Uses a system register for temporary usage when result omitted. You cannot change it's type once assigned to it, and only way is set it to Null. (e.g., =5;out +5 will output 10)
|
| ! | ??? | Null value. |
| ~n | n+1 | Returns n+1. |
| `n | n-1 | Returns n-1 |
| ^n | n%2 | Returns n mod 2. |
| array\n | array[n] | Quick & Golfing array item selection |
| c&code | ??? | Chooses which value the a is multiple of, overwise returns nothing Executes code..
|
function param1,param2,param3,... |
function(param1,param2, param3,...) |
No need for ( and ) for function call. |
| module | import module |
Module importing. |
See Also
- VTS: Another modification of python to use symbols