Recall & Review
beginner
What is Python Interactive Mode?
Python Interactive Mode is a way to run Python commands one at a time and see the result immediately. It is like talking to Python directly, typing commands and getting answers right away.
Click to reveal answer
beginner
What is Python Script Mode?
Python Script Mode means writing many Python commands in a file and then running the whole file at once. It is like writing a recipe and then cooking it all together.
Click to reveal answer
beginner
How do you start Python Interactive Mode?
You start Python Interactive Mode by opening a terminal or command prompt and typing 'python' or 'python3'. Then you can type commands and see results immediately.
Click to reveal answer
beginner
How do you run a Python script file?
You run a Python script by saving your code in a file with '.py' extension and then running 'python filename.py' in the terminal or command prompt.
Click to reveal answer
beginner
What is a key difference between Interactive Mode and Script Mode?
Interactive Mode runs one command at a time and shows results immediately, good for testing and learning. Script Mode runs all commands in a file at once, good for bigger programs.
Click to reveal answer
How do you start Python Interactive Mode?
✗ Incorrect
Typing 'python' in the terminal starts the interactive mode where you can type commands one by one.
What file extension do Python scripts usually have?
✗ Incorrect
Python scripts are saved with the '.py' extension.
Which mode is better for testing small pieces of code quickly?
✗ Incorrect
Interactive Mode lets you run commands one at a time and see results immediately, making it great for quick tests.
How do you run a Python script file?
✗ Incorrect
Running 'python filename.py' in the terminal executes the whole script file.
What happens in Script Mode?
✗ Incorrect
In Script Mode, the entire script file runs from top to bottom at once.
Explain the difference between Python Interactive Mode and Script Mode.
Think about how you talk to Python in each mode.
You got /4 concepts.
How do you start Python Interactive Mode and how do you run a script file?
One is typing just 'python', the other includes the file name.
You got /2 concepts.