(continued from previous page 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) print the number of days print("number of days ="dayfollowing is the outputs of the print statementswhich looks better than the output in the previous sectionpython expansion py "gold day expansion radius saving results in file there are two ways to save the results in the file in the first methodwe can redirect the output of the print statement to the file (instead of printing then on the terminalnote that the '>sign will overwrite the file contentswhereas the '>>sign will append the content at the end of the file alsoplease see the unix guide to learn more commands like 'catwhich is used to display the content of the file python expansion py "gold data txt cat data txt day expansion radius python expansion py "gold >data txt cat data txt day expansion day expansion radius radius in the other methodwe can open the file in the python script and then save the data in the fileas shown below more file operations will be discussed in next notethis method is better than previous methodas we can select the outputs which should saving results in file