+ 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

5th Apr 2018, 1:37 PM
Shubham kumar Mishra
Shubham kumar Mishra - avatar
4 ответов
+ 2
Thanks bro
5th Apr 2018, 1:55 PM
Shubham kumar Mishra
Shubham kumar Mishra - avatar
+ 1
No C9H8O4 doesn't ends with OH it must be false
5th Apr 2018, 1:58 PM
Shubham kumar Mishra
Shubham kumar Mishra - avatar
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
5th Apr 2018, 1:53 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
0
Shubham Mishra For the compound C9H8O4, is the program supposed to return true?
5th Apr 2018, 1:55 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar