Mar-09-2018, 07:16 AM
Make gen_map to return what you want (in addition to print), although I would leave out or move print out of the function altogether
Also note that the code you posted has number of issues that need to be addressed - using global variables, obfuscating use of built-in functions, etc.
Also note that the code you posted has number of issues that need to be addressed - using global variables, obfuscating use of built-in functions, etc.