How to Flatten a List of Lists in Python (Sample Code) – Real Python