Saved Bookmarks
| 1. |
Write a program to input n numbers and to insert any number in a particular position. |
|
Answer» n=input(“Enter no. of values") num=[] for i in range (n): number=input(“Enter the number") num.append(number) newno = input(“Enter the number to be inserted”) pos = input(“Enter position”) num.insert(newno,pos) print num |
|