# Task
 A media access control address (MAC address) is a unique identifier assigned to network interfaces for communications on the physical network segment.

 The standard (IEEE 802) format for printing MAC-48 addresses in human-friendly form is six groups of two hexadecimal digits (0 to 9 or A to F), separated by hyphens (e.g. 01-23-45-67-89-AB).

# Example

 For `inputString = "00-1B-63-84-45-E6"`, the output should be `true`;
 
 For `inputString = "Z1-1B-63-84-45-E6"`, the output should be `false`;
 
 For `inputString = "not a MAC-48 address"`, the output should be `false`.
 
# Input/Output

 - `[input]` string `inputString`
 
 - `[output]` a boolean value

    `true` if inputString corresponds to MAC-48 address naming rules, `false` otherwise.

Source: codewars | Difficulty: EASY
Tags: Ad-hoc

Starter code: def is_mac_48_address(address):
	

Solutions:
import re

def is_mac_48_address(address):
	return bool(re.match('^([0-9A-F]{2}[-]){5}([0-9A-F]{2})$', address.upper()))


def is_mac_48_address(address):
	chunks = address.split('-')
	for chunk in chunks:
		try:
			int(chunk, 16)
		except ValueError:
			return False
	return len(chunks) == 6


def is_mac_48_address(address):
	try:
		bytes = address.split('-')
		return all((0 <= int(byte, 16) < 256 for byte in bytes)) and len(bytes) == 6
	except:
		return False


def is_mac_48_address(address):
	L = address.split('-')
	if len(L) != 6:
		return False
	for x in L:
		try:
			int(x, 16)
		except:
			return False
	return True


is_mac_48_address = lambda address: bool(__import__('re').match('-'.join(['[0-9A-F]{2}'] * 6) + '$', address))


def is_mac_48_address(address):
	try:
		return all((isinstance(int(x, 16), int) for x in address.split('-'))) and len(address) == 17
	except:
		return False


is_mac_48_address = lambda a: a.count(' ') == 0 and a.count('-') == 5 and (a[0] not in ['Z', 'G'])


def is_mac_48_address(address):
	try:
		return len([int(e, 16) for e in address.split('-')]) == 6
	except (ValueError, TypeError):
		return False


import re
is_mac_48_address = lambda s, a='[0-9][A-F]|[0-9]{2}|[A-F]{2}|[A-F][0-9]': len(re.findall('-|{}'.format(a), s)) == 11