Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python error
#2
Quote:The output says:Traceback (most recent call last):
This is not the complete traceback.
Always post the complete unaltered traceback. It contains very valuable information.
also, please attach a sampling of Prob03.in.txt, or if small, the entire file.
the error you are getting indicates that prob dosen't contain what you think it does.

use print, it's your friend,
for example after line 7, add:
print(f"len(prob): {len(prob)}")
Reply


Messages In This Thread
Python error - by SamAnw - Feb-14-2020, 04:59 AM
RE: Python error - by Larz60+ - Feb-14-2020, 07:20 AM

Forum Jump:

User Panel Messages

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