I searched over the website, but I couldn't exactly find the answer to my question.
I'm using Ubuntu 18.04.1 LTS.
e.g. in my python script (FileName.py):
#!/usr/bin/env python
a = 1
b = 2
Now, I want to execute it line by line (MATLAB-like) from Terminal. For example when I press a + b
, it should return the value 3
.