Skip to main content

A Hundred Days of Code, Day 010

Working on the get tempature / mini weather app.

  • Learnt about type hints.(I intuitively needed this feature as I kept dotting in my editor waiting for stuff to pop up :P glad to know such a thing exists and Python supports it.)
  • Learnt about named tuples. I love anything that will let me name things the way I want.
  • Learnt about sanitising text that we extract from a web page; stripping white space and new lines and crazy characters and what not.
  • Grateful for the batteries included nature of Python. Well, not necessarily batteries included as much as batteries available on demand. Batteries of all shapes and sizes at that. I can only imagine what writing such a program from scratch must involve. To all the generous people, making modules and libraries available to use freely, and to the infrastructure that delivers it, you folk have my undying gratitude.