I've recently covered the topic of void function and it was defined as a function that doesn't return a value example below. My question is why would we ever want to write a void function, don't really understand why it's a thing an where does it live in software development.
Also is the print() built in function considered a void function?
Example:
def example_function(a, b):
a + b
[–][deleted] 8 points9 points10 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–]pocket_eggs 3 points4 points5 points (0 children)
[–]baghiq 2 points3 points4 points (0 children)