>
>
>
> >>>> cmd = "run_parallel -za" + str(number) + \
> > ... " -s" + " \'daemon -cf xyz; sleep 1\'"
>
> cmd = "run_parallel -za{} -s 'daemon -cf xyz; sleep 1'".format(number)
>
>
How will I format number to strings using .format ??
Example
>>> str(num)
'100'
>>> cmd = "run_parallel -za{} -s 'daemon -cf xyz; sleep 1'".format(str(num))
>>> cmd
"run_parallel -za100 -s 'daemon -cf xyz; sleep 1'“.
Will Something like format(str(num)) work ? it working though
Regards,
Ganesh
--
https://mail.python.org/mailman/listinfo/python-list