Convert multiple line Python code to a single line in a dead simple way.
Paste your code below and hit Convert
Ease copy pasting Python code in some cases (e.g paste into Python shell or through Putty). If you find yourself need this a lot you may consider using ipython with the %paste
command, or a graphic based one like dreampie
Basically it paste your multiline code together into a triple quoted string and wraps it with exec. To keep the code legal the string is processed as follows:
\
, then escape """
.exec
statement or function based on version option.