# Lists movies = ["Inception", "The Matrix", "Interstellar"] movies.append("The Shawshank Redemption") movies.remove("The Matrix") # Access elements print(movies[0]) # First element # Tuples (immutable) dimensions = (1920, 1080) print(dimensions[1]) # Access element
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