+ 1
Please i need helpppppppppppppppp
ive tried everything but the fifth case is not working https://code.sololearn.com/c5wc2fMf415c/?ref=app
6 Antworten
+ 5
Can you add task link or Lesson number? I think, it is asking the result to round up to 2 decimal places..
Better, not to convert to lower. Try as it is in description. Also, use Equals() method, instead of Contains()
Try
print( round(total, 2))
edit: in c#:
Console.Write( Math.Round(total, 2))
+ 3
Yes.
Ex: Pizza , vegPizza.
You're welcome...
+ 2
already rounded it to 2 decimals i will try the others suggestions thanks
+ 2
i changed it to Equals and it works, whats the difference between the 2 i dont get why would it work with one and not the other, ohhh i thing i get it, in the test case there is probably 2 names combined and its counting it with the first name instead of coke isnt it. thanks a lot
+ 1
Jayakrishna 🇮🇳 in what language is round(s,2) used? i think ive seen ut in java but i am not sure
+ 1
It's in python. but i told general pseudo code.