The document discusses two modes for interacting with Python: interactive mode and script mode.
In interactive mode, Python waits for commands to be entered one by one. The Python shell allows testing code snippets immediately by prompting for input and printing output. Help and documentation can also be accessed from the interactive shell.
Script mode runs a Python program from a source file without prompting for input between lines of code.
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
90 views
LECT 6 Python
The document discusses two modes for interacting with Python: interactive mode and script mode.
In interactive mode, Python waits for commands to be entered one by one. The Python shell allows testing code snippets immediately by prompting for input and printing output. Help and documentation can also be accessed from the interactive shell.
Script mode runs a Python program from a source file without prompting for input between lines of code.