I have a list. In this list have various type of sentences suppose question type and general sentences. I want to add question mark "?" sign after end of the sentence if it it is question.
Here is my list
lst = ['what is Fame', 'how can you start work', 'can you learn design', 'this is text']
I tried this code
for i in lst:
if 'what' or 'how' or 'can' in lst:
print(i, '?')
But not getting my desired output.
I would like to achieve:
what is Fame?
how can you start work?
can you learn design?
Could anyone please help me to do this?
Thanks, everyone!