Feb-14-2020, 07:20 AM
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)}")