Skip to main content
1 vote

Calculate cumulative daily rainfall

@Matteo, the code can be shortened by using arrays. As you can see, in your code there is repeatability and also variables ordered by numbers which can easily be indexes of an array. For example: <...
Gass's user avatar
  • 203
1 vote

Calculate cumulative daily rainfall

Welcome to Code Review. Here are a few improvements to the code: Use const and arrow notation for your functions. Stick to the DRY (Don't Repeat Yourself) ...
Miguel Alorda's user avatar
1 vote
Accepted

Generating JSON with Jinja2

Instead of having the .json output being served from a template file, make use of the json module function of ...
hjpotter92's user avatar
  • 8,921

Only top scored, non community-wiki answers of a minimum length are eligible