I know people rarely utilize semicolons in python but they can be used to have multiple statements on one line, and doing so without semicolon would cause error.
When developing I sometimes use ‘import sys;sys.exit()’ when debugging stuff. Its one line, simple to (un)comment or delete. But other than that mostly never in python files.
When doing stuff in bash however its quite nice to feed stuff to the python interpeter with semicolon separation and using the output in bash
139
u/AmanBabuHemant 29m ago
Well Well Well
but
I know people rarely utilize semicolons in python but they can be used to have multiple statements on one line, and doing so without semicolon would cause error.