Bob103

PY_#13

Jul 2nd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. sp = [0] * int(input('size='))
  2. for i in range(len(sp)):
  3.     sp[i]=int(input())
  4.  
  5. k1=int(input('k1='))
  6. k2=int(input('k2='))+1
  7.  
  8. for i in range(k1,k2):
  9.     sp.remove(i)
  10. print(sp)
Advertisement
Add Comment
Please, Sign In to add comment