Computer Science, asked by nasirabdul7246, 10 months ago

Which statement creates the bytes literal when run?

Answers

Answered by shagunverma504
0

Syntax ......... During error in python 2.5

Answered by Anonymous
0

Statement that creates bytes literal when run is bytes([source [, encoding[, errors]]]).

  • The bytes method returns a immutable bytes object initialized with the given size and data.
  • It takes three optional parameters such as source, encoding, errors.
  • The source parameter can be used to initialize the array are Strings, Integer, Objects, Iterable, No source.
  • If a source is a String, then action to take when the encoding conversion fails.
Similar questions