SarkariResultess QA Bank

List को dictionary key क्यों नहीं बना सकते? — error आने पर developer क्या करे?

Other 0 Views Verified
List को dictionary key क्यों नहीं बना सकते? — error आने पर developer क्या करे?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

List immutable है

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

List mutable और unhashable है

List mutable और unhashable है
Additional Explanation
Dictionary keys hashable होनी चाहिए। पहले traceback की exact line और input value check करें।
Verified

List केवल strings रखती है

List केवल strings रखती है
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

Dictionary keys हमेशा integers होती हैं

Dictionary keys हमेशा integers होती हैं
Additional Explanation
यह विकल्प सही समाधान नहीं है।