Python Forum
How Can I Resolve This Error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Can I Resolve This Error
#11
(Jan-18-2018, 02:51 PM)Gribouillis Wrote: The message indicates that python cannot compare a 'method' to a string with the comparison operator >. A method is a function. You get this because you forgot to call the method one.getData().getAuthor(). Note the parentheses.
The Error Seems To Have Been resolved With The Code. But there has not been any sorting being done on the contents of the linkedList.

This Is My Output
Output:
After Adding Value At Position 3 3 Author Name: DDD Title: CCC Book ID: 0003 Author Name: AAA Title: BBB Book ID: 0001 Author Name: GGG Title: FFF Book ID: 0004 Author Name: EEE Title: LLL Book ID: 0005 After Sorting 3 Author Name: DDD Title: CCC Book ID: 0003 Author Name: AAA Title: BBB Book ID: 0001 Author Name: GGG Title: FFF Book ID: 0004 Author Name: EEE Title: LLL Book ID: 0005
I am not sure if I have missed out anything inside the code for the BubbleSort().
Any Guidance Would Be Appreciated.
Thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I use tabs and spaces? (how to resolve error TabError: inconsistent) Onanism 15 5,773 Mar-24-2022, 07:57 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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