+ 2

How to print text from p tag but not the text of child tag ?

html=''' <p><strong>8. Keel is the characteristics feature of flower of</strong><br/> (a) tomato<br/> (b) aloe<br/> (c) Indigofera<br/> (d) tulip</p> ''' I want to print all the options except question which is inside strong tag my attempt : actually I have no idea what to do please help expected output : (a) tomato (b) aloe (c) Indigofera (d) tulip https://code.sololearn.com/cpPw9Kv8oNpu/?ref=app

29th Dec 2021, 11:20 AM
Ratnapal Shende
Ratnapal Shende - avatar
2 ответов
+ 4
https://code.sololearn.com/c64GrkiROY5s/?ref=app
29th Dec 2021, 8:36 PM
Vitaly Sokol
Vitaly Sokol - avatar
+ 1
Vitaly Sokol Thank you so much!
30th Dec 2021, 11:06 AM
Ratnapal Shende
Ratnapal Shende - avatar