Inclusive FOR Loops
Python range(1,5) = 1,2,3,4. ERL for i = 1 to 5 = 1,2,3,4,5 (inclusive!)
DIV & MOD
Use DIV instead of //. Use MOD instead of %.
elseif (no space)
ERL uses elseif (one word). Python uses elif.
String Library
word.length instead of len(word). word.substring(0,4) instead of slicing.
Arrays (Fixed Size)
Declare with array name[5]. 2D: array grid[3,3]. No append/pop.
Switch / Case
ERL has switch/case/default/endswitch. Python has no equivalent.
File Handling
newFile("f.txt") creates a blank file. Then open("f.txt", "w") to write. Use .readLine() and .endOfFile().
Arrays (Value Init)
array c = ["Red","Blue"] or array c[5]. 2D: array g[3,3].