Computer Science, asked by dhanushDhanush8730, 1 year ago

When reading data across the network (i.e. from a url) in python 3, what method must be used to convert it to the internal format used by strings?

Answers

Answered by Anonymous
0

decode() is used to convert it to the internal format used by strings.

  • The data from a specific URL is already encoded in a certain encoding scheme.
  • decode() can convert the data from one encoding system to another.
  • Syntax: decode ( encoding, error )
  • decode() returns the original string obtained from the encoded string.

Similar questions