Please i need helpppppppppppppppp | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Please i need helpppppppppppppppp

ive tried everything but the fifth case is not working https://code.sololearn.com/c5wc2fMf415c/?ref=app

10th Mar 2023, 1:20 PM
Eidrian Gospodinov
Eidrian Gospodinov - avatar
6 Answers
+ 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))
10th Mar 2023, 1:35 PM
Jayakrishna 🇮🇳
+ 3
Yes. Ex: Pizza , vegPizza. You're welcome...
10th Mar 2023, 2:16 PM
Jayakrishna 🇮🇳
+ 2
already rounded it to 2 decimals i will try the others suggestions thanks
10th Mar 2023, 2:06 PM
Eidrian Gospodinov
Eidrian Gospodinov - avatar
+ 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
10th Mar 2023, 2:11 PM
Eidrian Gospodinov
Eidrian Gospodinov - avatar
+ 1
Jayakrishna 🇮🇳 in what language is round(s,2) used? i think ive seen ut in java but i am not sure
11th Mar 2023, 1:13 PM
Eidrian Gospodinov
Eidrian Gospodinov - avatar
+ 1
It's in python. but i told general pseudo code.
11th Mar 2023, 2:49 PM
Jayakrishna 🇮🇳