tkinter new line in text

# Inserts new line at the end of textwidget 
textwidget.insert(END, names + '\n')

Here is what the above code is Doing:
1. We create a text widget and insert some text into it.
2. We create a scrollbar widget and attach it to the text widget.
3. We create a button widget and attach it to the text widget.
4. We create a function that inserts a new line at the end of the text widget.
5. We call the function when the button is clicked.