Python 3/Google hash code/Slideshow/slideshow.py
def pair_value(slide1, slide2):
    """Function that given a pair of slides returns the points that it would get"""
    common_tags = len(slide1.tags.intersection(slide2.tags))
    in_S1_not_in_S2 = len(slide1.tags - slide2.tags)
    in_S2_not_in_S1 = len(slide2.tags - slide1.tags)
    points = sorted([common_tags, in_S1_not_in_S2, in_S2_not_in_S1])[0]
    return(points)
Function that given a pair of slides returns the points that it would get
Function that given a pair of slides returns the points that it would get
Function that given a pair of slides returns the points that it would get
def pair_value(slide1, slide2):
    common_tags = len(slide1.tags.intersection(slide2.tags))
    in_S1_not_in_S2 = len(slide1.tags - slide2.tags)
    in_S2_not_in_S1 = len(slide2.tags - slide1.tags)
    points = sorted([common_tags, in_S1_not_in_S2, in_S2_not_in_S1])[0]
    return(points)
def pair_value ( slide1 , slide2 ) : common_tags = len ( slide1 . tags . intersection ( slide2 . tags ) ) in_S1_not_in_S2 = len ( slide1 . tags - slide2 . tags ) in_S2_not_in_S1 = len ( slide2 . tags - slide1 . tags ) points = sorted ( [ common_tags , in_S1_not_in_S2 , in_S2_not_in_S1 ] ) [ 0 ] return ( points )
Function that given a pair of slides returns the points that it would get
Function that given a pair of slides returns the points that it would get
"""Function that given a pair of slides returns the points that it would get"""
slide1
slide2