Computer Science, asked by mohammedubaidullah35, 3 months ago

Write a python program to accept three names as input from the user. Store these names in a list.
Shift all the three names to a single variable.

Answers

Answered by Akashrajpal9
1

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.

11.1. List values

There are several ways to create a new list; the simplest is to enclose the elements in square brackets ([ and ]):

Similar questions