list initialize with ?
Sharan Basappa
sharan.basappa at gmail.com
Sat Jun 30 08:49:03 EDT 2018
On Saturday, 30 June 2018 17:48:05 UTC+5:30, Steven D'Aprano wrote:
> On Sat, 30 Jun 2018 04:50:10 -0700, Sharan Basappa wrote:
>
> > Can anyone explain to me what the ? does here:
> >
> > ignore_words = ['?']
>
> Its a question mark inside a string, which is inside a list. You can put
> anything you like in strings:
>
> 'a'
>
> 'abcde'
>
> even punctuation like '?'. Then you can put the string inside a list.
>
> What you do with it, I have no idea -- presumably its your code.
>
>
> --
> Steven D'Aprano
> "Ever since I learned about confirmation bias, I've been seeing
> it everywhere." -- Jon Ronson
oh, ok. I assumed that ? has some special meaning.
I should be able to find out more.
PS: Actually, its not my code. I am using an online code as reference for my research.
More information about the Python-list
mailing list