1. Home
  2. Data Science
  3. Python
  4. Which tool formats Python code automatically with an…

Added 25 Nov 2026

Which tool formats Python code automatically with an uncompromising style?

  1. black Correct answer
  2. pylint only
  3. pytest
  4. pip

Correct answer

A. black

MCQSEXAM

Explanation

Black reformats code to a consistent style.

Reference

Asked in: Python Interview Advanced

https://docs.python.org/3/library/index.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs