Apr-11-2021, 07:15 PM
Hi,
Trying to understand this piece of code. Would appreciate any help
thanks
Trying to understand this piece of code. Would appreciate any help
job_args = dict() if args.job_args: job_args_tuples = [arg_str.split('=') for arg_str in args.job_args] job_args = {a[0]: a[1] for a in job_args_tuples}So in the first line, we create a dictionary of job_args. Can someone please explain line 3 and 4?
thanks