Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nums = [int(item) for item in input().split(" ")]
- command = input()
- while command != "end":
- num = command
- index_num = num[0]
- nums.insert(int(index_num), int(num))
- command = input()
- for i in nums:
- print(i, end=' ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement