How to Write and Run a Python Script: A Comprehensive Guide