SarkariResultess QA Bank

File में existing content के अंत में जोड़ने के लिए कौन सा mode है? — error आने पर developer क्या करे?

Other 0 Views Verified
File में existing content के अंत में जोड़ने के लिए कौन सा mode है? — error आने पर developer क्या करे?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified Correct Answer

open('data.txt', 'a', encoding='utf-8')

open('data.txt', 'a', encoding='utf-8')
Additional Explanation
a append mode है। पहले traceback की exact line और input value check करें।
Verified

open('data.txt', 'w+')

open('data.txt', 'w+')
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

open('data.txt', 'append')

open('data.txt', 'append')
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

open('data.txt', 'add')

open('data.txt', 'add')
Additional Explanation
यह विकल्प सही समाधान नहीं है।