Hello,
I recently started learning Python for Data Science purposes but I am already familiar with different coding concepts and the language Java.
Currently, I am trying to understand the data types in java. Weirdly, I cannot print them as expected:
print("Unsorted list: " + scores.__str__())
scores.sort()
print("Sorted list: " + scores.__str__())
Why is it that the method (??) __str__ is necessary here? Is this even a method?
I have seen multiple occurrences of the double underscore but I haven't found any resources about what they mean.
I appreciate your help!