List की shallow copy कैसे बनाते हैं? — error आने पर developer क्या करे?

Other Published Updated 0 Views Verified
List की shallow copy कैसे बनाते हैं? — error आने पर developer क्या करे?
Looking for the latest Sarkari Result 2026 updates? Check the latest government exam results, merit lists and result updates on Sarkari Resultess.
Sarkari Resultess
Questions & Answers

Answer & Explanation

4 Answers
Verified

copy = clone(items)

copy = clone(items)
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Sarkari Resultess
Editorial Answer 1
Verified

copy = items.clone()

copy = items.clone()
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Sarkari Resultess
Editorial Answer 2
Verified

copy = duplicate(items)

copy = duplicate(items)
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Sarkari Resultess
Editorial Answer 3
Verified Correct Answer

copy = items.copy()

copy = items.copy()
Additional Explanation
copy() shallow copy देता है। पहले traceback की exact line और input value check करें।
Sarkari Resultess
Editorial Answer 4