Python Classroom notes 28/Jul/2026

Decorator

  • Decorators add additional functionality to existing functions or classes.
  • To write our own decorators, we need to understand the concept of nested functions

  • Refer Here

Exercise

  • We have a code which does calcualations
  • When the user chooses the option verbose
  • I’m supposed to print each variable value (args)

Calculator

  • We support multiple types of calculations
  • Each calculator needs to be registered to the caclultor

By continuous learner

enthusiastic technology learner

Leave a Reply

Discover more from Direct AI Powered By Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading