Could you call Python's program during the interaction?

Asked 2 years ago, Updated 2 years ago, 37 views

For example, if you have the following files,

#add.py
a = 1
b = 2
c=a+b

Could you call this during Python's interaction to see the value of c?
I don't have to debug with print statements, so programming is very easy...

I look forward to your kind cooperation.

python python3

2022-09-30 21:29

1 Answers

Resolved!


by booting with option i like Pyhton-i add.py You were able to shift to interactive input mode after running the script.


2022-09-30 21:29

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.