694 shaares
4 liens privés
4 liens privés
3 résultats
taggé
StyleGuide
Understand five key Python concepts related to these magic methods
Python’s F-String was added in Python 3.6.0 as PEP-498 – Literal String Interpolation. Before the introduction of Python f-strings, there were other methods of formatting like %-formatting, str.format() or string.Template(). These methods have their advantages, but the major disadvantage is that they are difficult to use. But, Python f-string is termed as the easiest way to format the string and hence became the most popular feature of Python3.
This style guide aims to document my preferred style for writing Python code
It is based on Python PEP 8. Portions of this guide borrow heavily from:
- Google: C++ and Python style guides.
- Airbnb: Ruby style guide.
- Trey Hunner: Python style guide.
source : https://www.codementor.io/nourchawich/python-style-guide-complete-oz5d02ubt