Oct-09-2017, 06:17 AM
(Oct-09-2017, 05:22 AM)evilcode1 Wrote: some one is deleted my membership and my topic i don't know why ??Sorry, due to incident with the server last night, forum had to be reverted to a backup and as a result information from the last few hours was lost.
As to your question - currently your
scan_and_print_neighbors
is only writing to log file. You have two options - (i) this function could return the information you want (at the moment it returns the default None) and you can write this info to a file in the if __name__ == '__main__'
block or (ii) you can pass this info to another function that will write it to file.combination of two is also possible - function from (i) that you call in the if block.