SarkariResultess QA Bank

File में existing content के अंत में जोड़ने के लिए कौन सा mode है?

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

Answer & Explanation

4 Answers
Verified

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

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

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

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

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

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

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

open('data.txt', 'a', encoding='utf-8')
Additional Explanation
a append mode है।