When invoking a Python script, you can specify various options/flags for better flexibility.
Here are 9 of the most commonly used options.
🔷 𝐩𝐲𝐭𝐡𝐨𝐧 -𝐜: Run a single Python command.
🔷 𝐩𝐲𝐭𝐡𝐨𝐧 -i: Run the script as usual and enter the interactive model instead of exiting.
🔷 𝐩𝐲𝐭𝐡𝐨𝐧 -𝐎: Ignore assert statements (This is alphabet ‘O’).
🔷 𝐩𝐲𝐭𝐡𝐨𝐧 -𝐎𝐎: Ignore assert statements and discard docstrings.
🔷 𝐩𝐲𝐭𝐡𝐨𝐧 -𝐖: Ignore all warnings.
🔷 𝐩𝐲𝐭𝐡𝐨𝐧 -𝐦: Run a module as a script.
🔷 𝐩𝐲𝐭𝐡𝐨𝐧 -𝐯: Enter verbose mode.
🔷 𝐩𝐲𝐭𝐡𝐨𝐧 -𝐱: Skip the first line.
🔷 𝐩𝐲𝐭𝐡𝐨𝐧 -𝐄: ignore all Python environment variables.
https://hottg.com/DataScience4
>>Click here to continue<<
