Computer Science, asked by prashantgautam9140, 6 months ago

Q1. What is the difference between list and tuples in Python?​

Answers

Answered by vshrivastava103
1

Answer:

  • list comes under [] big brackets while Tuples under ()
  • list is mutable while tuples are not
  • searching is faster in tuples
  • tuples can not have copies of same element while list can have

give me a brainly if u like it

Answered by jungkook777
3

Answer:

List

List is a container to contain different types of objects and is used to iterate objects.

Example

list = ['a', 'b', 'c', 'd', 'e']

Tuples

Tuple is also similar to list but contains immutable objects. Tuple processing is faster than List.

Example

tuples = ('a', 'b', 'c', 'd', 'e')

Attachments:
Similar questions