SarkariResultess QA Bank

Python में empty dictionary कैसे बनाते हैं? — error आने पर developer क्या करे?

Other 0 Views Verified
Python में empty dictionary कैसे बनाते हैं? — error आने पर developer क्या करे?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

data = []

data = []
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified Correct Answer

data = {}

data = {}
Additional Explanation
{} empty dictionary बनाता है। पहले traceback की exact line और input value check करें।
Verified

data = dict

data = dict
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

data = ()

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