Python Forum
Can you give me a code based on the given skeleton code?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can you give me a code based on the given skeleton code?
#5
On line 13 you refer to self.start and self.end. However your class has no attribute start and end. You are supposed to use start and end - these are the arguments you pass when call digitpower.sumofarmstrongnumbers() method.
Note that you make same error on lines 5 and 8 with self.number

All that said it's obvious that skeleton class is not really well designed to warrant it to be a class at all
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: Can you give me a code based on the given skeleton code? - by buran - Mar-22-2020, 10:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python with Finance - i have no code but don't do it for me give me tips please Akainu 1 2,480 May-30-2019, 07:57 PM
Last Post: nilamo
  cant get the code to give me the position of the word axius23 2 3,151 Oct-27-2017, 10:07 AM
Last Post: gruntfutuk

Forum Jump:

User Panel Messages

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