class City: def __init__(self, name, county, state, lat, lon): self.name = name self.county = county self.state = state self.lat = lat self.lon = lon def format_lat(self, lat): direction = "N" if lat > 0 else "S" return ' '.join((str(abs(lat)), direction)) def format_lon(self, lon): direction = "E" if lon > 0 else "W" return ' '.join((str(abs(lon)), direction)) def print_location(self): print ("%s is in %s County, %s at %s, %s." % (self.name, self.county, self.state, self.format_lat(self.lat), self.format_lon(self.lon))) seattle = City("Seattle", "King", "WA", 47.61, -122.33)