Python - Standard Library Usage
You want to safely read an environment variable
PORT as an integer with a default of 8080 if not set or invalid. Which code snippet correctly does this?