Computer Science

For storing numeric data in a text file, it needs to be converted into …………… using …………… function.

  1. integer, int()
  2. integer, float()
  3. string, int()
  4. string, str()

Python Data Handling

1 Like

Answer

string, str()

Reason — For storing numeric data in a text file, it needs to be converted into a string using the 'str()' function. This is because text files store data in the form of characters, and converting numeric data to a string allows it to be written to the file as a sequence of characters.

Answered By

2 Likes


Related Questions