#!/usr/bin/python3
"""  script that takes in a URL, sends a request to the URL and
    displays the value of the X-Request-Id variable found in the header
    of the response.
    * You must use the packages urllib and sys
    * You are not allow to import packages other than urllib and sys
    * The value of this variable is different for each request
    * You don’t need to check arguments passed to the script (number or type)
    * You must use a with statement
"""
import urllib.request as rq
from sys import argv

if __name__ == "__main__":
    req = rq.Request(argv[1])
    with rq.urlopen(req) as response:
        print(response.headers.get('X-Request-Id'))

759ee446d36e1f03d3d2a73b6fd01f28b6a9d224
<mask token>

<mask token>
if __name__ == '__main__':
    req = rq.Request(argv[1])
    with rq.urlopen(req) as response:
        print(response.headers.get('X-Request-Id'))

<mask token>
import urllib.request as rq
from sys import argv
if __name__ == '__main__':
    req = rq.Request(argv[1])
    with rq.urlopen(req) as response:
        print(response.headers.get('X-Request-Id'))

#!/usr/bin/python3
"""  script that takes in a URL, sends a request to the URL and
    displays the value of the X-Request-Id variable found in the header
    of the response.
    * You must use the packages urllib and sys
    * You are not allow to import packages other than urllib and sys
    * The value of this variable is different for each request
    * You don’t need to check arguments passed to the script (number or type)
    * You must use a with statement
"""
import urllib.request as rq
from sys import argv

if __name__ == "__main__":
    req = rq.Request(argv[1])
    with rq.urlopen(req) as response:
        print(response.headers.get('X-Request-Id'))
