Why is this a string and not an interger? Two lines of code seem similar but behave differently
I'm pulling the data for this code from the wunderground API and one line:
    
    sunsethour = parsed_json ['moon_phase']['sunset']['hour']
    sunsetminute = parsed_json ['moon_phase']['sunset']['minute']
    print "\nSunset is at: %s:%s" % (sunsethour, sunsetminute)
    hightide = parsed_json ['tide']['tideSummary']['date']
    print (hightide)
    f.close()

While the sunset time prints fine, the hightide time produces the error "list indices must be integers, not str"

Very new to python and just trying to find my way. Please go easy on me, some dialog around here seems pretty intimidating. 

Why is this a string and not an interger? Two lines of code seem similar but behave differently
===

I'm pulling the data for this code from the wunderground API and one line:
    
    sunsethour = parsed_json ['moon_phase']['sunset']['hour']
    sunsetminute = parsed_json ['moon_phase']['sunset']['minute']
    print "\nSunset is at: %s:%s" % (sunsethour, sunsetminute)
    hightide = parsed_json ['tide']['tideSummary']['date']
    print (hightide)
    f.close()

While the sunset time prints fine, the hightide time produces the error "list indices must be integers, not str"

Very new to python and just trying to find my way. Please go easy on me, some dialog around here seems pretty intimidating. 
