the 'sys argvpass the command line argument to python script the argv[ is the file name alsothe arguments are passed as string-formattherefore these need to be converted into proper formatas done in line where the argv[ is converted into 'floatformat ring py import sys from math import pi if len(sys argv! display error message for missing arguments raise systemexit("usage ring py \"metal\radius" sys argv[ is the file name metal "coppermetal sys argv[ radius input is read as string therefore it is converted into float radius float(sys argv[ ] perimeter *pi*radius area pi radius** print("metal ="metalprint("pi ="piprint("perimeter ="perimeterprint("area ="areanowrun the command and we will get the following outputs python ring py usage ring py "metalradius python ring py "gold metal gold perimeter area debugging in this sectiontwo basic methods are shown for debugging the code in the later we will see use some advance topics such as decorator and descriptor etc to debug the design run script and go to python shell one of the way to debug the code is to use python shell for this we can use the '-ioption as shown below after executing of the code using 'ioptionthe python shell will be openwhere we can check the various values or behavior of the implemented logics we will use this method extensively in the tutorial python - ring py "gold metal gold perimeter area print(sys argvprint the arguments read from terminal ['ring py''gold'' '(continues on next page debugging