Tuesday, February 7, 2017

Abstraction

This program in Python is using a function defined as greeting which is printing out the greetings for me for every person I have entered in the greeting list. This reduces the complexity of the program because instead of me having to print out a greeting for each single person this function is doing it for me. It also makes it easier to understand what the code is doing because it makes it shorter and overall makes it easier to read for anyone so they could understand what the program is doing. Even though this is just a small program it can be expanded for other things as well other then greetings where then I could have more abstractions and reduce complexity for a bigger program.

No comments:

Post a Comment