Skip to content
Advertisement

Is there any way to get the output in aws sns to print separate lines for every item in the list

Ok, so I have this lambda function that appends return_values[whatever] list and that is sent to aws sns with the formatting below, the problem is it separates the list item with commas and not with a desired new line. Is there a method to get this formatting correct? I’ve tried the print(*results,sep=’n’) but that just comes back as None as print only returns to the console.

Here’s the output:

JavaScript

Unknown us listed on the same line three times and the goal is to separate the results per line. The general idea of the code is below, thanks for the assistance.

JavaScript

Advertisement

Answer

This last example is how I got it to work.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement