pastebin

Paste Search Dynamic
Recent pastes
array import
  1. from array import*
  2. a1=array('i',[10,20,30,40,50,60,70,80])
  3. a1.append(24)
  4. print('the array after append:',a1)
  5. a1.remove(10)
  6. print('the array after deleting:',a1)
  7. a1.insert(32,1)
  8. print('the array after inserting:',a1)
  9. n=a1.pop(3)
  10. print("the popped element",n)
  11. n=a1.index(40)
  12. print("index of 40",n)
  13. l=a1.tolist()
  14. print('list:',l)
Parsed in 0.020 seconds