Python Forum
University Assignment Help needed
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
University Assignment Help needed
#3
first, post code that matches error.
error shows line 35, but the code that caused the error above is on line 33.
errors must match actual code.
That said, you are instantiating a copy of 'book' with p, t, pr, i and a
the __init__ from book does not accept any arguments:
class book(publication):
    def __init__(self):
You must allot placeholders for these items, which must have the same name as the variables used within the class, for example:
class book(publication):
def __init__(self, publisher, title, price, ISBN, author):
Reply


Messages In This Thread
University Assignment Help needed - by Diovanno - Apr-10-2018, 11:58 AM
RE: University Assignment Help needed - by mlieqo - Apr-10-2018, 02:24 PM
RE: University Assignment Help needed - by Larz60+ - Apr-10-2018, 02:36 PM
RE: University Assignment Help needed - by Diovanno - Apr-10-2018, 02:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] University Assignment Help needed Nomathemba 4 4,146 Apr-20-2024, 12:24 PM
Last Post: jas31
Lightbulb Python University Laboratory - Help camibaldessini 3 1,487 Nov-03-2023, 01:28 PM
Last Post: Garrypyton
  Help with university work - reading and writing files MrKnd94 3 1,394 Nov-01-2022, 08:29 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020