Getting Started
bashCopy codenpm install synthcode-aibashCopy codesynthcode-ai login --api-key YOUR_KEYbashCopy codesynthcode-ai create project-name
bashCopy codesynthcode-ai demo
Last updated
bashCopy codenpm install synthcode-aibashCopy codesynthcode-ai login --api-key YOUR_KEYbashCopy codesynthcode-ai create project-namebashCopy codesynthcode-ai demoLast updated
pythonCopy codeimport requests
def get_weather(city):
api_key = "your_api_key"
url = f"http://api.openweathermap.org/data/2.5/weather?q={city}&appid={api_key}"
response = requests.get(url)
data = response.json()
print(f"Weather in {city}: {data['weather'][0]['description']}")
get_weather("New York")