Python onliners from terminal: Difference between revisions
From wikiluntti
(Created page with "== Introduction == Use python as a simple calculator. Python is a powerful language which is easy to use. == Theory == Use -c option to use python. Note that print command is necessary.") |
(→Theory) |
||
Line 5: | Line 5: | ||
== Theory == | == Theory == | ||
Use -c option to use python. Note that print command is necessary. | Use -c option to use python. Note that print command is necessary. Or use echo -e option to pipe commands to Python compiler. | ||
https://stackoverflow.com/questions/2043453/executing-multi-line-statements-in-the-one-line-command-line |
Latest revision as of 19:44, 10 January 2022
Introduction
Use python as a simple calculator. Python is a powerful language which is easy to use.
Theory
Use -c option to use python. Note that print command is necessary. Or use echo -e option to pipe commands to Python compiler.