| SWOL Character/Keyword/Function |
Python Translation |
Meaning |
| ; |
\n |
new line |
| : |
: |
used for if conditions, functions, loops, etc... |
| } |
[tab] |
indentation |
| = |
= |
assigning variables |
| +, -, *, /, % |
+, -, *, /, % |
mathematical operations |
| ^ |
** |
exponent operator |
| # |
// |
floor division ("%" is the remainder of a floor division) |
| I |
input |
asking for text user input |
| P |
print |
show a string/value to the terminal |
| i |
int |
integer data type |
| fl |
float |
float data type |
| s |
str |
string data type |
| bl |
bool |
boolean data type |
| F |
def |
defining a function |
| ret |
return |
end a function and output a value from the function |
| R |
for i in range |
for loop (reapeat a function for n amount of times) |
| W |
while |
while loop (reapeat a function while a condition is true) |
| IF |
if |
do a function if a condition is true |
| ELF |
elif |
contraction of else if |
| ELS |
else |
do something else if the condition wasn't true |
| <, >, ==, !=, <=, >= |
<, >, ==, !=, <=, >= |
comparison operators |
| AN, NO, OR |
and, not, or |
logical operators |
| IN |
in |
membership operator |
| TR, FA |
True, False |
booleans |
| a, b, c, d, e, f, g |
var_a, var_b ... var_g |
built-in variables (however, you can declare your own variables) |