Question: undefined 50 # 4 # 6 # 8 # 9 # # 12 # # w02_markus 2.py 33 wo2_markus 2.py ) No Selection 1 w02_markus.py
undefined
50 # 4 # 6 # 8 # 9 # # 12 # # w02_markus 2.py 33 wo2_markus 2.py ) No Selection 1 w02_markus.py 2 3 # Complete the following steps: (1) Add one new example to the docstring in the function sheldon_says. 5 # (2) Change the function body so that the function runs as described by the # docstring. 7 (3) Save your file after you make a change, and then run the file by clicking on the green Run button in Wing101. This will let you call your modified function in the shell. An asterisk * on the Wing101 10 # wo2_markus.py tab indicates that modifications have NOT been saved. 11 (4) Test your sheldon_says function in the Wing101 shell by evaluating the statement 13 >>> sheldon_says('Penny') 14 # and confirm that the correct result is displayed. 15 # (5) Test your sheldon_says function using different function arguments. 16 # (6) When you are convinced that your sheldon_says function is correct, 17 # submit your modified file to Markus. You can find instructions on 18 # Submitting a file to Markus in the Week 2 Perform on PCRS. 19# (7) Verify you have submit the right file to Markus by downloading it again 20 # and checking it is the one you meant to submit. 21 (8) We have also provided a checker test for you to run in Markus. Run this 22 # to make sure your code passes a simple test case. Note that we will run 23 additional tests when we mark your submission. 24 25 def sheldon_says (name: str) -> str: 26 "Return name followed by an exclamation point, all repeated 3 times. 27 28 >>> sheldon_says('Penny') "Penny! Penny! Penny!' 30 31 # # 29 32 33 34 return 35
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
