Write a script in R to create a list of cities and perform the following 1) Give names to the elements in the list. 2) Add an element at the end of the list. 3) Remove the last element. 4) Update the 3rd Element
Answers
Answered by
3
Answer:
A list is an ordered collection of values. The values that make up a list are called its elements, or its items. We will use the term element or item to mean the same thing. Lists are similar to strings, which are ordered collections of characters, except that the elements of a list can be of any type. Lists and strings — and other collections that maintain the order of their items — are called sequences.
plz mark me as brainliest
Similar questions