r/PythonLearning
•
u/ProgramBrave718
•
Sep 26 '26
•
1
Showcase Made my first cool project!!!
I made a program that calculates exact sunrise and sunset based on latitude and longitude of a specific location.
Here I used this api
I can't get a geocoding api to translate location's name into coordinates.
I had to create a dictionary of a few locations.
295
Upvotes


View all comments
2
u/gofl-zimbard-37 Sep 26 '26
Nice. Now give it a proper main() to make it a real program. Never write code that runs outside of functions, such that you have to read the entire thing to know what it does.