@rafaelcaricio if you try out code in the interpreter and put code in files only because you have to, Emacs gives you both with its inferior-<language>-mode for any language with an interpreter. You can highlight any part of the code in files and have it run in the interpreter which is running in another buffer (tab). Or use the entire file. Or type variations in the interpreter and copy the variant of interest into the code file.