• Without a list, a script needs one variable for each port:

    port_1 = "Gi0/1"
    port_2 = "Gi0/2"
    port_3 = "Gi0/3"

    A list holds all these values in one variable. You create a list like this:

    In ports = ["Gi0/1", "Gi0/2", "Gi0/3"], "Gi0/1" is an item, one value of the list, a comma goes between two items, and the brackets open and close the list.

    Figure 1 - The Parts of a List

    To show a list on the screen, you use print() like with a variable:

    ports = ["Gi0/1", "Gi0/2", "Gi0/3"]
    print(ports)    # Output: ['Gi0/1', 'Gi0/2', 'Gi0/3']

    In the lab, create a list named vlans that holds 10, 20 and 30.
    Print it and click Run to get the flag.

    Answer the question below

    Enter the flag you obtained.