Which is the correct syntax of append() function?

36. Which is the correct syntax of append() function?

  1. append(list, [separator])
  2. append(value)
  3. append(list, value, [separator])
  4. append-to-list(list, value, [separator])

Answer: C) append(list, value, [separator])

Explanation:

The correct syntax to add a single value in a list is,

append(list, value, [separator])

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.