0
Ex Super Sale (Python)
Test Case #4 not solved - Do you have an idea why it's not working? #HateLockedCases Thanks for your keen eyes... 👁️👁️👍 https://code.sololearn.com/cSh1sATBmHTo/?ref=app
2 Answers
+ 2
# Hi, Didi !
# You can compare your solution to this one:
print(int(sum(sorted(float(x) for x in input().split(","))[:-1]) * 0.321))
+ 1
Found it out: Before sorting of the list the data transformation was necessary! Can't explain why though 😁
Implemented your code too with a list comprehension to shorten it even more. Nice work with the index.