Computer Science, asked by anany2810, 1 year ago

What are lists and how many types of lists can you create

Answers

Answered by tejasgupta
0

Lists are used to arrange data in a sequential or non-sequential manner. They are used to list some thing or specify the order of a task.

Let me explain lists with the help of some examples.

But, before that, Let me tell you the types of list.

So, here, we have two types of lists

  • Ordered Lists: They are used to show the sequence of something.
  • Unordered Lists: They are used to list something in a non-sequential manner.

Now, Examples.....

Example of an ordered list...........

  1. Item 1 or Step 1....
  2. Item 2 or Step 2....
  3. Item 3 or Step 3...

...and so on....

Example of an unordered list....

  • Apple
  • Orange
  • Mango
  • Banana
  • Kiwi

....and so on....

So, let's now have a quick recap...

Lists are used to arrange data in a sequential or non-sequential manner and are of two types- Ordered and Unordered Lists.....

Similar questions