Computer Science, asked by jagrwl2, 3 days ago

which of the following is a correct way to get the first value in a list called number a.numbers(0) b. numbers.first[0] c.numbers[1] d. numbers.first(0)

Answers

Answered by ssrajguru10
0

Answer:

c.numbers (1)

Explanation:

{1)=1 value

Answered by jahnavi578
0

The first value in a list of  'numbers'  can be called using numbers(0). Option A is the correct answer.

1. List is an abstract data type. It is a container of values.

   It is a linear collection of data and consists of an order.

2. List follows indexing. It allows data items to some key or index.

3. First value of the list is always pointed to '0'.

4. Since the name given to the list is numbers, simply calling it with the index value will suffice writing as numbers(0).

Similar questions