Dominant prevalence
In Python
# bo_1.py
message = "Hello World"
buffer = [None] * 10
print(message)
for i in range(15):
buffer[i] = 'A'
print(message)$ python3 bo_1.py
Hello World
Traceback (most recent call last):
File "bo_1.py", line 7, in <module>
buffer[i] = 'A'
IndexError: list assignment index out of rangeIn C
Last updated