An array is a collection of elements stored in a fixed-size structure.
All elements must be the same type, and each element is accessed using an index.
You can create arrays by specifying the type and size, or by initializing values directly.
Arrays are often used with loops to access all elements.
A List is a dynamic collection that can grow and shrink in size.
It is part of System.Collections.Generic and is more flexible than arrays.
Lists allow you to easily add and remove elements.
Arrays and Lists serve similar purposes but behave differently:
Use arrays when you know the exact number of elements ahead of time.
Use lists when the number of elements may change.
Create a list of student names, remove one, and print the remaining names.