Exemple #1
0
        Welcome to Walk-the-Dog where you can take the
        guesswork out of walking your furry friend.

        Stay dry and enjoy your walk.

    """
    print(welcome_message)
    sleep(3)

    m = Menu()

    while True:

        # render menu from the Menu object
        m.render()
        # create a location object from the information gathered in Menu object
        l = Location(m.zipcode, m.start, m.end)
        # connect to api to gather longitude and latitude from entered zip code
        l.GetLocation()
        # connect to api for weather
        l.GetWeather(api_key=api_key_for_weather)
        # score hours and display results
        l.RankHours()

        if m.try_again():
            m.clear()
            m.progress = 0
            continue
        else:
            break