def flatten(original_list):
        return [item for sublist in original_list for item in sublist]
      
      Python language logo

      Flatten a list

      Python public recipes

      Flatten a nested list

      Shortcut: list.flatten

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.