generated from mwc/lab_weather
	Checkpoint 1: I kind of hated how the test_friend_functions worked. It was overstimulating and I had to move my friend_functions code into the people code to test them out. I did end up getting correct results for the functions that I created but I couldm't figure out what was happening to these results when I ran them with test_friend_functions instead. I took too much time getting frustrated on this part so I decided to move on after thinking that I got the general gist of it. I also talked to Molly and we both thought this part was frustrating and moved on after a while. Checkpoint 2: This part of the lab was less frustrating than the one before. I guess understanding what the weather API did helped a lot as well as the practice from frined functions to call things appropriately. My general understanding of what all these systems have in common is that they all rely on inputs one way or the other. For more complex systems such as the weather that draws from online data, we also have to be careful with how to integrate and recall outputs to continue and then categorize them as we need.
		
			
				
	
	
		
			25 lines
		
	
	
		
			753 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			753 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# weather.py
 | 
						|
# ------------
 | 
						|
# By MWC Contributors
 | 
						|
#
 | 
						|
# Defines `print_weather`, which does all the work of fetching 
 | 
						|
# the requested weather data and printing it out to the screen
 | 
						|
# in a sensible way. 
 | 
						|
# 
 | 
						|
# It's your job to implement this function.
 | 
						|
 | 
						|
from weather.weather_apis import (
 | 
						|
    geocode_location,
 | 
						|
    estimate_location,
 | 
						|
    get_weather_office,
 | 
						|
    get_forecast
 | 
						|
)
 | 
						|
 | 
						|
def print_weather(location=None, metric=False, verbose=False):
 | 
						|
    """Prints out a weather report using the provided location, or using
 | 
						|
    the user's current location if no location was provided. 
 | 
						|
    When metric is True, prints out the weather in metric units.
 | 
						|
    When verbose is True, prints out a more detailed report. 
 | 
						|
    """
 | 
						|
    print("Not finished...") # YOUR CODE HERE!
 |