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

19th Nov 2022, 11:13 PM
Didi
Didi - avatar
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))
19th Nov 2022, 11:57 PM
Per Bratthammar
Per Bratthammar - avatar
+ 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.
21st Nov 2022, 9:15 AM
Didi
Didi - avatar