be written in the file for exampleline will not be printed in the fileif the wrong input values are provided during execution of the script expansion py find the number of days when radius cm due to heat-expansion import sys if len(sys argv! display error message for missing arguments raise systemexit("usage ring py \"metal\radius" sys argv[ is the file name metal sys argv[ input is read as string therefore it is converted into float radius float(sys argv[ ] list of expansion rate for different metal rate [ [coppergoldiron day out_file open("expansion txt"" "open file in write mode #use any of the below #below is not in good format print("{ }{ }{ }format("day""expansion""radius") #"right aligned"left aligned# string with width print("{:> {:> {:> }format("day""expansion""radius")file out_file #old style print("% % % ("day""expansion""radius") while radius multiply by correct expansion rate if metal ="copper"expansion radius rate[ elif metal ="gold"expansion radius rate[ elif metal ="iron"expansion radius rate[ elseprint("enter the correct metal"break new radius radius +expansion day + increment the number of days by one #print the data # digits # digits with decimal points print("{:> {:> {:> }format(dayexpansionradius)file out_file print the number of days print("number of days ="daynowexecute the script and see the content of the file as below saving results in file