In Python 2.7 the following works without a problem:
myrange = range(10,100,10)
myrange.append(200)
print(my range)
Output: [10,20,30,40,50,60,70,80,90,200]
Conversely, in Python 3.3.4 the same code snippet returns the error: 'range' object has no attribute 'append'
Please could someone explain the reason for this error in Python 3.3.4, and where possible, provide a solution?
The desired output: [10, 20, 30, 40, 50, 60, 70, 80, 90, 200].
Many thanks in advance, mrj.