+ 1
Write and test a function hydroxide that returns a 1 for true if its string argument ends in the substring OH .
Try the function hydroxide on the following data: KOH H2O2 NaCl NaOH C9H8O4 MgOH
4 odpowiedzi
+ 2
Thanks bro
+ 1
No C9H8O4 doesn't ends with OH
it must be false
0
My try. You should post this as an assignment in Lesson Factory, if you posted this as a challenge .
https://code.sololearn.com/ckOqV7ljc36q/?ref=app
0
Shubham Mishra
For the compound C9H8O4, is the program supposed to return true?