How do i add ncce.weather into my code?

Question:
how do i add ncce.weather into my python code???
Repl link:
https://replit.com/@21brennanc/The-weather
code snippet

You just need to install the package and run the code. You can use the package function in replit to install it.

About your code I made a minor improvement:

from ncce.weather import description

print("Where do you live?")
location = input()

try:
    weather = description(location)
    print("The weather is", weather)
except Exception as e:
    print("An error occurred:", e)
2 Likes