Question: COMP SCIENCE: HOW DO I DO PART 2 ???? m Running Simple Python Scripts > TAMIL Scenario many + 1 port XV 2 print. 201

COMP SCIENCE:

HOW DO I DO PART 2 ????COMP SCIENCE: HOW DO I DO PART 2 ???? m Running SimplePython Scripts > TAMIL Scenario many + 1 port XV 2 print".

m Running Simple Python Scripts > TAMIL Scenario many + 1 port XV 2 print". 201 2 print("Initiala:") 4 print("Nickname:") print(20) workspace s python main.py ------------- Initiala: Nickname > You have been asked to generate a simple Python script that will pont a name card consisting of the instals of a name and an cinamo. workspace su Aim CHAT Python Berist that shouler Pro Command line. It shu take the initials and nickname of a name s arguments and give the output as shown in Figure 1.6 Steps for Completion 1. Go to your main.py file and import the sys built-in python medule. 2 Use to print statements to grint Initials: and Nickname: .As. use these prnt statements to print 20 ceste:) as borders above and below the initials and nipiname 3 Two pe parameters should be passed with the worit: one for the initials and the second for the nickname 1. Run the script with python min.py command and he was in arguments It upon run you get the following crror. IndexError. Ist index out of range. Maka sure to pass two string arguments when running the script like the example bclow 0 Running Simple Python Scripts > Terminal main.py import sys 2 print(".. 20) 3 print("Initials) print("Nick") print"."* 201 Foto workspace $ python3 min.oy -------- Initials: Nickname: Grading wock sunce sa workspace su Complete each task listed below. Each task contains automated chacks which are used to calculate your grade. When you have completed each task by clicking the checkbax, open the task list panel on the left navigation bar and click 'Submilben Tasks Pasanare initia and a nickname argument to the He nain.ay whi.. Prowded command line arguments when running the Python file. Tool Make sure that the serpt has been run in the terminal and two arguments have been provided. Use the following command python ring wig R2 Checks Command Test Two string arguments were passed via the command line Description Sherche specifi: corretardir the best sex rur in the urinal

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!