• To store the name and the address of a switch, you can use two variables:

    switch_name = "SW1"
    switch_ip = "10.0.0.2"

    A dictionary holds them in one variable and gives each value a name called a key:

    In switch = {"name": "SW1", "ip": "10.0.0.2"} written on four lines, "ip" is a key, the name of a value, "10.0.0.2" is a value, what the key holds, and the braces open and close the dictionary.

    Figure 1 - The Parts of a Dictionary

    You print a dictionary like a list:

    switch = {
        "name": "SW1",
        "ip": "10.0.0.2"
    }
    print(switch)    # Output: {'name': 'SW1', 'ip': '10.0.0.2'}

    In the lab, create a dictionary named router with the key name that holds "R1" and the key ip that holds "10.0.0.1".
    Print it and click Run to get the flag.

    Answer the question below

    Enter the flag you obtained.