def get_port_name(port_number):
for number, name in scan_ports():<EOL><INDENT>if number == port_number:<EOL><INDENT>return name<EOL><DEDENT><DEDENT>return None<EOL>
Scans for the given port number and return its name.
If port number does not exists, returns ``None``.