3 ms·
Python 2.7 supports string.format and Python 3 supports % formatting. The only actual difference in that example is that print became a function in Python 3, r
by Ded7xSEoPKYNsDd 11y ago
Python 2.7 supports string.format and Python 3 supports % formatting.
The only actual difference in that example is that print became a function in Python 3, requiring some additional parentheses. (Something that can be mechanically translated without much hassle.)
- GFK_of_xmaspast 11y agoWasn't the % formatting missing from early versions of python3?