0

Can't solve Supersale test case #4 !

https://code.sololearn.com/cLCb6vAxyDSO/?ref=app Any ideas? I'm about to explode ... 😤 Any help appreciated 😋

7th Mar 2020, 1:42 PM
Matthias Matznick
Matthias Matznick - avatar
7 Respuestas
+ 3
Matthias Matznick The float() method is used to return a floating point number from a number or a string. The method only accepts one parameter and that is also optional to use. 
9th Mar 2020, 7:57 PM
BroFar
BroFar - avatar
+ 2
Matthias Matznick please re-create your code on the playground * keep private and remove the above code details to remain compliant to the rules regarding asking questions about the pro code coach rules ... Thanks and happy coding
7th Mar 2020, 2:58 PM
BroFar
BroFar - avatar
+ 2
https://code.sololearn.com/cexwZ58s25El/?ref=app Convert to float during input solved the issue, though I don't fully understand. Converting to float while calling the elements from the list didn't work, and I can't spot the difference. If someone can explain I'd be grateful.
9th Mar 2020, 7:35 PM
Matthias Matznick
Matthias Matznick - avatar
+ 1
With 'playground' do you mean the 'code bits' section? Am I allowed to link to the code from here?
7th Mar 2020, 3:32 PM
Matthias Matznick
Matthias Matznick - avatar
+ 1
Thanks for the reminder, I wasn't familiar with the rule since I found a lot of code directly written in the posts. I hope it's ok now. I'd like to upvote your first comment but can't because I get the 'activate your account' error, though it should be activated. I'll do it when the issue is solved. Have a good time!
7th Mar 2020, 3:54 PM
Matthias Matznick
Matthias Matznick - avatar
+ 1
Matthias thank you for following the code coach pro rules... I will look at it soon. But in the meantime let's see how much effort the community helps.
7th Mar 2020, 10:14 PM
BroFar
BroFar - avatar
0
Matthias Matznick as long as it is private yes from the code bits section and yes you can link it here. But you may not directly make the code public as that is not allowed.
7th Mar 2020, 3:42 PM
BroFar
BroFar - avatar