Learning Python, trying to read NASA program. Why is it show=True while defining function? Are we allowed to initialize variable this way? I don' see any use of it.
def visualizeDomain(domain, show=True):
'''Draw all the sensors and ground truth from a domain'''
centerMap(domain.center[0], domain.center[1], 11)
for s in domain.sensor_list:
apply(addToMap, s.visualize(show=show))
if domain.ground_truth != None:
addToMap(domain.ground_truth, {}, 'Ground Truth', False)
Thank you everyone for your help.
s.visualize()on the fourth line