Aug-22-2017, 09:56 AM
No this is not modulo. This is "string formatting" and the best way to use variable contents in a string template.
Why write it like this? So you do not do the even older way (don't use it) of combining template and variables in a completely unreadable manner like many beginners first do (because they don't know this advanced string formatting)
Why write it like this? So you do not do the even older way (don't use it) of combining template and variables in a completely unreadable manner like many beginners first do (because they don't know this advanced string formatting)
world = 'Poland' today = 'Tuesday, 23. August' print('Hello ' + world + '! How are you ' + today + '?')