SarkariResultess QA Bank

Python में list में item जोड़ने के लिए कौन सा method है? — error आने पर developer क्या करे?

Other 0 Views Verified
Python में list में item जोड़ने के लिए कौन सा method है? — error आने पर developer क्या करे?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

items.insert_end('Python')

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

items.append('Python')

items.append('Python')
Additional Explanation
append() list के अंत में item जोड़ता है। पहले traceback की exact line और input value check करें।
Verified

items.add('Python')

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

items.push('Python')

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