If you are writing data to a CSV file and want to ensure that no extra blank…

PYQ KVS TGT/PGT 2026

If you are writing data to a CSV file and want to ensure that no extra blank lines are inserted between rows on Windows systems, which parameter should you include in the open() function?

  1. A.

    newline=''

  2. B.

    space=False

  3. C.

    mode='csv'

  4. D.

    encoding='utf-8'

Attempted by 495 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…