1#to get integer list
2integer_list = list(map(int, input().split()))
3#to get char or str list, just replace int with str
4str_list = list(map(str, input().split()))
5#syntax of map(): map(dataType, iterable [, iterable2, iterable3,...iterableN])
1# number of elements
2n = int(input("Enter number of elements : "))
3
4# Below line read inputs from user using map() function
5a = list(map(int,input("\nEnter the numbers : ").strip().split()))[:n]
6
7print("\nList is - ", a)