Skip to content
CodeKruPro

The simplest singleton in Python

QuizEasyPython onlyAsked in: TCS

A singleton is a design pattern where only one object of a kind exists and everyone shares it. Which is the simplest, most common way to have exactly one shared config object in a Python project?

Choose one answer.

to answer and keep your progress. Reading is free for everyone.