The end=' ' is just to say that you want a space after the end of the statement instead of a new line character. In Python 2.x you would have to do this by placing a comma at the end of the print statement.
The default value of end is \n meaning that after the print statement it will print a new line. So simply stated end is what you want to be printed after the print statement has been executed
By default there is a newline character appended to the item being printed (end='\n'), and end='' is used to make it printed on the same line. And print() prints an empty newline, which is necessary to keep on printing on the next line.
What does end=' ' in a print call exactly do? - Stack Overflow
Нигде не могу найти описание функций begin() и end(), для чего они нужны? Если можно напишите пример пожалуйста :)
c++ - Что делают функции begin () и end () - Stack Overflow на русском
In VBA, sometimes we want to exit the program after some condition is true. But do I use end or exit sub?
I'm new to PHP and don't understand what the point of <<<_END is. Could someone please explain when this should be used? I've looked at various examples and they all seem to have HTML embedded within them. But I can use HTML without the <<<_END tags, so why should I use them? I tried searching the manual, but I keep finding the end() method for ...