Jul-08-2020, 11:29 AM
General rule - a function should do one thing and do it well. In this case it should return the string to the main program and let the program control the output formatting, etc. Functions should not print unless printing is the actual purpose of the function.