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.
149
150
150
-
```py
151
-
asabeneh@Asabeneh:~$ python --version
152
-
Python 3.9.6
153
-
```
151
+

154
152
155
153
Well done, you wrote your first Python script on Python interactive shell. How do we close the Python interactive shell ?
156
154
To close the shell, next to this symbol >> write **exit()** command and press Enter.
157
155
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
-
```
156
+

165
157
166
158
Now, you know how to open the Python interactive shell and how to exit from it.
0 commit comments