1input_string = input('Enter elements of a list separated by space ')
2print("\n")
3user_list = input_string.split()
4# print list
5print('list: ', user_list)
6
7# convert each item to int type
8for i in range(len(user_list)):
9 # convert each item to int type
10 user_list[i] = int(user_list[i])