108k views
5 votes
Python how to get multiple lines of input with a loop

User FGiorlando
by
5.8k points

1 Answer

1 vote

Answer:

4 Ways to take multiple inputs in list in Python. The basic way of using a loop. Usingc map () method.

Step-by-step explanation:

1. take multiple inputs in Python list using loop. The first method is a simple method of using a loop and then appending the input in a list

2. map () method to take multiple inputs in Python list. Second technique which we can use is by using the map () method

3. take multiple inputs List of list as input. Next technique is by using a list of lists and appending the elements in a list

Python Program to take list of list input

User Andrew Einhorn
by
5.8k points