All versions before 3.6 supports only the
Also Python 2.7 supports the
If you want to use format strings, you apply what you've learned about the format method.
In addition you can put f-
The benefit with formatting is, that you don not have to convert the datatypes by yourself.
If you just concatenate strings with the
format
method, the %
operator and some other methods.Also Python 2.7 supports the
format
method.If you want to use format strings, you apply what you've learned about the format method.
In addition you can put f-
strings
in you code, to guarantee that's not executed below Python 3.6.The benefit with formatting is, that you don not have to convert the datatypes by yourself.
If you just concatenate strings with the
+
operator, all objects must be strings.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!