SarkariResultess QA Bank

Python में private-like naming convention क्या है? — error आने पर developer क्या करे?

Other 0 Views Verified
Python में private-like naming convention क्या है? — error आने पर developer क्या करे?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

private(name)

private(name)
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

private name

private name
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified Correct Answer

_name

_name
Additional Explanation
Single underscore non-public convention है; यह strict private नहीं है। पहले traceback की exact line और input value check करें।
Verified

__private name only

__private name only
Additional Explanation
यह विकल्प सही समाधान नहीं है।