Python 3/Google hash code/Slideshow/slideshow.py
def ShowValue(slides):
    """Function that given a SlideShow returns the points that it would get"""
    points = 0
    if len(slides) >= 2:
        i = 0
        while i < len(slides)-1:
            points += pair_value(slides[i], slides[i+1])
            i += 1
    return(points)
Function that given a SlideShow returns the points that it would get
Function that given a SlideShow returns the points that it would get
Function that given a SlideShow returns the points that it would get
def ShowValue(slides):
    points = 0
    if len(slides) >= 2:
        i = 0
        while i < len(slides)-1:
            points += pair_value(slides[i], slides[i+1])
            i += 1
    return(points)
def ShowValue ( slides ) : points = 0 if len ( slides ) >= 2 : i = 0 while i < len ( slides ) - 1 : points += pair_value ( slides [ i ] , slides [ i + 1 ] ) i += 1 return ( points )
Function that given a SlideShow returns the points that it would get
Function that given a SlideShow returns the points that it would get
"""Function that given a SlideShow returns the points that it would get"""
slides