Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

python
formatter
communitycreator

What is the Python formatter.end_paragraph(blanklines)?

Naima Abrar

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

The formatter helps output data that is quick, detailed, and easy to read for any user who might come across it. The formatter has many functions that serve this purpose. It can be imported from the formatter library.

Syntax

formatter.end_paragraph(number of blank lines to be inserted)

This function indicates the end of a paragraph and adds the number of blank lines specified in the argument.

Code

import formatter
class class_name():
def __init__(self, formatter):
self.formatter = formatter
def new_function(self):
self.formatter.end_paragraph(3)

RELATED TAGS

python
formatter
communitycreator

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring