You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Python interactive shell is opened and it is waiting for you to write Python code(Python script). You will write your Python script next to this symbol >>> and then click Enter.
149
-
Let us write our very first script on the Python scripting shell.
150
149
151
-

150
+
```py
151
+
asabeneh@Asabeneh:~$ python --version
152
+
Python 3.9.6
153
+
```
152
154
153
155
Well done, you wrote your first Python script on Python interactive shell. How do we close the Python interactive shell ?
154
156
To close the shell, next to this symbol >> write **exit()** command and press Enter.
155
157
156
-

158
+
```py
159
+
asabeneh@Asabeneh:~$ python
160
+
Python 3.9.6 (default, Jun 282021, 15:26:21)
161
+
[Clang 11.0.0 (clang-1100.0.33.8)] on darwin
162
+
Type "help", "copyright", "credits"or"license"for more information.
163
+
>>>|
164
+
```
157
165
158
166
Now, you know how to open the Python interactive shell and how to exitfrom it.
0 commit comments