Given a one-dimensional array of numeric values, numbering N elements. To exclude from it M elements, starting from the number K.
N = 10 K = 5 M = 2 mas = range(N) print (mas) mas [K:K+M] = [] print (mas)
Error: mas [K: K + M] = [] TypeError: 'range' object does not support item assignment