You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal of the get_cable_info function is to return contact info of the best cable provider for the user's address. A possible resource for this might be https://www.cabletv.com. This is a tough one and not expected to be perfect! Results could just be based on zip code.
arguments received will be the user's street address and zip code in string format, followed by latitude and longitude in float format.
return variables should be in string format and in a dict/key value pair url should be the website of the cable provider
user address will be verified prior to being passed to the function
default format for phone numbers on StreetWise is (xxx) xxx-xxxx
completed code can be added here or by adding a file named get_cable_info in the python or javascript branch
The starter code above is for Python but feel free to use Javascript instead
Thanks for working on StreetWise!
The text was updated successfully, but these errors were encountered:
ssciere
changed the title
PYTHON: get_cable_info function
PYTHON or JAVASCRIPT: get_cable_info function
Nov 7, 2019
The goal of the get_cable_info function is to return contact info of the best cable provider for the user's address. A possible resource for this might be https://www.cabletv.com. This is a tough one and not expected to be perfect! Results could just be based on zip code.
#############STARTER CODE##########################
def get_cable_info (street_address, zip, lat, lon):
resulting_info = {'company':company,'phone':phone, 'url':url}
return (resulting_info)
###################################################
NOTES:
The starter code above is for Python but feel free to use Javascript instead
Thanks for working on StreetWise!
The text was updated successfully, but these errors were encountered: