Python Forum

Full Version: Need your small help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
HIII,

I want to count a number of words that contains string a. for e.g. 

a = Sophia
[sophia, Sophia beautiful, smile of Sophia,  Sophia's car ]

please tell me how to solve it .




Huh Huh Huh Huh
Sorry, but we will not "tell" you how to solve it, but we will "help" you as you work to solve it.  First and foremost, please post the code you have so far and the complete error code (if any).  Be sure and post them between the proper 'code tags'.  Refer to the Help Document for instructions on how to post code properly.
You almost have working code. Wrap those strings in quotes, and try again :)