mutable_list = [2, 14, 26, 41, 63] print(mutable_list) # [2, 14, 26, 41, 63] mutable_list[2] = 49 #We change the value in index 2 into '49' print(mutable_list) # [2, 14, 49, 41, 63]
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter