Take three names as input from the user. Store these names in a list. Shift all the three names to a single variable and delete the list. PYTHON PROGRAM
Answers
Answered by
3
Answer:
We often encounter a situation when we need to take number/string as input from the user. In this article, we will see how to get as input a list from the user.
Explanation:
Input : n = 4, ele = 1 2 3 4
Output : [1, 2, 3, 4]
Input : n = 6, ele = 3 4 1 7 9 6
Output : [3, 4, 1, 7, 9, 6]
Similar questions