SarkariResultess QA Bank

Python में list में किसी value को remove कैसे करते हैं? — error आने पर developer क्या करे?

Other 0 Views Verified
Python में list में किसी value को remove कैसे करते हैं? — error आने पर developer क्या करे?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified Correct Answer

items.remove('Python')

items.remove('Python')
Additional Explanation
remove(value) पहली matching value हटाता है। पहले traceback की exact line और input value check करें।
Verified

items.delete('Python')

items.delete('Python')
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

items.pop('Python')

items.pop('Python')
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

items.drop('Python')

items.drop('Python')
Additional Explanation
यह विकल्प सही समाधान नहीं है।