+ 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
2 Respuestas
+ 4
https://code.sololearn.com/c64GrkiROY5s/?ref=app
+ 1
Vitaly Sokol Thank you so much!