KwickClips Course Topics · 41 sec · free
Does a Python script echo values like the shell?
Short answer. No. A script shows a value only when you use print().
What is the shell good for?
Typing one line and getting the answer at once.
Remember
| Shell: one line, instant answer |
| Script: saved file, needs print() |
The shell shows twenty five. A saved file shows nothing. Why? The shell, interactive mode, shows every value. A saved file, script mode, does not. Only print shows twenty five. The shell answers at once. A script needs print.
This clip is from the full lesson: Interactive mode vs script mode — 5 minutes, with the tables, the quick answers and the whole lesson in text.
Useful for: Programming All levels Python
Voice-over is AI-generated; the script is written and checked by Kajal Ma'am. Confirm anything you plan around against your official board document. We never ask for a password or an OTP.

