The only disadvantage is when you close the interactive session, the code no longer exists. The statements you write when working with an interactive session are evaluated and executed immediately: print('HELLO WORLD!') You need to re-install Python on your system if you do not see these characters. The > on the terminal represents the standard prompt for the interactive mode. Type "help", "copyright", "credits" or "license()" for more information. To initiate a Python interactive session, type python in the command line or terminal and hit the ENTER key from the keyboard.Īn example of how to do this on Windows: C:\users>python An interactive session is an excellent development tool to venture with the language and allows you to test every piece of Python code on the go. Running Python code through an interactive session is an extensively used way. On MAC OS X, the system terminal is accessed through Applications → Utilities → Terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |