I am unsure why I keep getting a error code, I was able to get the rest
Fantastic news! We've Found the answer you've been seeking!
Question:
I am unsure why I keep getting a error code, I was able to get the rest of the code working but I need assitance on getting the edit member to work correctly. I have to keep the code somewhat the same because it is based off a code I had to use previously.
my code is the following:
https://dpaste.de/Qfb3
Transcribed Image Text:
34 35 36 37 38 30 40 41 42 43 44 45 47 18 49 30 31 52 53 34 5.5 36 37 58 59 60 61 63 64 65 66 67 60 69 70 71 72 73 roster.py X A B def printMenu() 1 print ( B member Member () while True! D H B Weeklyassignment4 (1).py X selt.members.append (pl D Main Menu print ("1. Display Tuan Roxtur.") print ("2. Add Hember.") print ("3. Remove Member." print (4. Edit Mumbur.") print (9. Exit Program. " A printunu () sal-int(input ("Please Enter your selection: ")) it sel--11 b.display (1) if 12: nane-input("Enter new member's name:") number input ("Enter new member's phone number: " jaray=input("Entar nas mambar' jaraay nunhar: " menber.addMember (name, number, jersey member.display() if 1==3: " nane-input("Enter member name to be removed: ") nenber.zenove (none) manhar.display (1 if sel--4: nane-input ("Enter the name of the meneber you want to edit: ") nana2=input("Enter the new nans of the member: " phone2-input("Enter the new Phone number or confirm current: " jersey2-input ("Enter new or confirm jersey number: ") manbur.adit. (nam, 2) menber.append(phone2) nenber.append(jersey2) manbur.display (1) if sel-9: aye.exit(1 while True if sel=3 Run D ? roster 1. Display Tean Roster. 2. Add Meaber. 3. Rannve Manhar. 4. Edit Mercer. 9. Exit Program. Pla Enter your animation: 2 Enter new member's name: re Enter new member's phone number: 555555 Enter ww nanbar'a jarany number: 665 Mame shay, Phone Number -324324234, Jersey 00 Mamelce, Phone Number -702234234, Jeracy- 79 Nama wars, Phone Number =555555, 065 Main Menu- 1. Display Tean Reater. 2. Add Munke. 3. Remote Member. 4. Edit Member. 9. Exit Program. Please Enter your selection: 3 Enter member name to be removed: ara Bu hay, Phone Number 324324234, Jury 00 Nameles, Phone Number =702234234, Jersey= 79 Kain Menu---‒‒‒‒‒‒ 1. Display Tuan Ruuter 2. Add Member. 3. Remove Member. 1. Edit Muuber. 9. Fxit Pengran. Please Enter your selection: 4 Enter the name of the member you want to edit: Ice Enter the new name of the nambar: axlay Enter the new Phone number or confirm current: 7654515026 Enter now or confian jersey number: 095 Traceback (next cant call lat): File "C:/Users/hunny has a fat head/AppData/Local/Temp/Rar-DRa5596.40511/roster.py", line 67, in nodules member.edit(name, name21 TypeError: adit() mixxing 4 required positional argumenta: 'phone', 'phone2', 'jarany', and 'jarany2" Process finished with exit code 1 1 34 35 36 37 38 30 40 41 42 43 44 45 47 18 49 30 31 52 53 34 5.5 36 37 58 59 60 61 63 64 65 66 67 60 69 70 71 72 73 roster.py X A B def printMenu() 1 print ( B member Member () while True! D H B Weeklyassignment4 (1).py X selt.members.append (pl D Main Menu print ("1. Display Tuan Roxtur.") print ("2. Add Hember.") print ("3. Remove Member." print (4. Edit Mumbur.") print (9. Exit Program. " A printunu () sal-int(input ("Please Enter your selection: ")) it sel--11 b.display (1) if 12: nane-input("Enter new member's name:") number input ("Enter new member's phone number: " jaray=input("Entar nas mambar' jaraay nunhar: " menber.addMember (name, number, jersey member.display() if 1==3: " nane-input("Enter member name to be removed: ") nenber.zenove (none) manhar.display (1 if sel--4: nane-input ("Enter the name of the meneber you want to edit: ") nana2=input("Enter the new nans of the member: " phone2-input("Enter the new Phone number or confirm current: " jersey2-input ("Enter new or confirm jersey number: ") manbur.adit. (nam, 2) menber.append(phone2) nenber.append(jersey2) manbur.display (1) if sel-9: aye.exit(1 while True if sel=3 Run D ? roster 1. Display Tean Roster. 2. Add Meaber. 3. Rannve Manhar. 4. Edit Mercer. 9. Exit Program. Pla Enter your animation: 2 Enter new member's name: re Enter new member's phone number: 555555 Enter ww nanbar'a jarany number: 665 Mame shay, Phone Number -324324234, Jersey 00 Mamelce, Phone Number -702234234, Jeracy- 79 Nama wars, Phone Number =555555, 065 Main Menu- 1. Display Tean Reater. 2. Add Munke. 3. Remote Member. 4. Edit Member. 9. Exit Program. Please Enter your selection: 3 Enter member name to be removed: ara Bu hay, Phone Number 324324234, Jury 00 Nameles, Phone Number =702234234, Jersey= 79 Kain Menu---‒‒‒‒‒‒ 1. Display Tuan Ruuter 2. Add Member. 3. Remove Member. 1. Edit Muuber. 9. Fxit Pengran. Please Enter your selection: 4 Enter the name of the member you want to edit: Ice Enter the new name of the nambar: axlay Enter the new Phone number or confirm current: 7654515026 Enter now or confian jersey number: 095 Traceback (next cant call lat): File "C:/Users/hunny has a fat head/AppData/Local/Temp/Rar-DRa5596.40511/roster.py", line 67, in nodules member.edit(name, name21 TypeError: adit() mixxing 4 required positional argumenta: 'phone', 'phone2', 'jarany', and 'jarany2" Process finished with exit code 1 1
Expert Answer:
Answer rating: 100% (QA)
this code is not working because here in edit function def editselfnamename2phonephone2jerseyjersey2 you have total 6 arguments and at the bottom you have only mentioned 2 arguments membereditnamename... View the full answer
Related Book For
Principles of Auditing and Other Assurance Services
ISBN: 978-0078025617
19th edition
Authors: Ray Whittington, Kurt Pany
Posted Date:
Students also viewed these programming questions
-
I am currently starting a business and developing my business plan. I'm in need of some advice on how to start forming my business. I am not sure exactly how it will be financed and whether or not I...
-
I am a marketing agency. My newly employee is working for me on a project. What are the Journal entries required for record revenue, incentive payment, and payroll for the following: Property 1: -...
-
I dont need to know accounting principles because my business is a sole proprietorship. Comment on this statement.
-
Explain factors governing recruitment?
-
By now you should be familiar with the various tools that can be used for planning, controlling, scheduling, and directing project activities. Table 1511 contains a partial list of such tools and how...
-
An iron block of unknown mass at 85C is dropped into an insulated tank that contains 100 L of water at 20C. At the same time, a paddle wheel driven by a 200-W motor is activated to stir the water. It...
-
Calculate the following: 1. \(7.57 \times 10^{13}+2.031 \times 10^{13}\) 2. \(3.03 \times 10^{-6}-1.5 \times 10^{-6}\)
-
The Battery Park Stable feeds and houses the horses used to pull tourist-filled carriages through the streets of Charleston's historic waterfront area. The stable owner, an ex-racehorse trainer,...
-
Transiport Inc. is considering including two pieces of equipment, a truck, and an overhead pulley system, in this year's capital budget. The projects are independent. The cash outlay for the truck is...
-
The purpose of this assignment is to develop practical skills in using WHOIS for domain information gathering, an essential aspect of cybersecurity investigations. Students will identify and analyze...
-
Please give excel formula for the following. The N=60. Mean is 5.075 and standard deviation is .139. The table is given in the image
-
One of the most popular phone accessory companies, Metlock, has a reputation for unique designs for its phone cases. Its cases fit any version of all the prominent manufacturers' phones. The...
-
The company uses the weighted average method of process costing for this department. Materials are added at the beginning of the process. There is no spoilage in the assembly department. Production...
-
Choose a product that has recently experienced a change in demand or a change in supply (remember, when you say "change in demand" or "change in supply" that means that the demand or supply curve has...
-
Cyber-bullying and suicide have become an increasing reality among young generation. Based on case study 4.2 in Kremling and Parker (2018), this assignment gives you opportunity to examine ethical...
-
Static and Flexible Budgets Graham Corporation used the following data to evaluate its current operating system. The company sells items for $10 each and used a budgeted selling price of $10 per...
-
How should an analyst determine the risk-free rate that is to be used in any particular valuation assignment?Should length of the forecast period affect the selection of a rate?
-
What types of questions can be answered by analyzing financial statements?
-
Charles Halstead, CPA, has a number of clients who desire audits at the end of the calendar year. In an effort to spread his workload more uniformly throughout the year, he is preparing a list of...
-
Loman, CPA, who has audited the financial statements of the Broadwall Corporation, a publicly held company, for the year ended December 31, 20X6, was asked to perform a review of the financial...
-
What are the major purposes of obtaining representation letters from audit clients?
-
1.5 Moscow to Tokyo. After spending a week in Moscow, you get an email from your friend in Japan. He can get you a very good deal on a plane ticket and wants you to meet him in Tokyo next week to...
-
1.6 Mark Du Plessis in Johannesburg. Mark Du Plessis lives in Johannesburg, South Africa. He can buy a euro for R16.3700 (South African rand). At the same time, Richard Nolan, living in Paris, can...
-
1.7 Mexico's Cada Seis Aos. Mexico was famous-or infamous-for many years for having two things every six years (cada seis aos in Spanish): a presi- dential election and a currency devaluation. This...
Study smarter with the SolutionInn App