[issue43134] (list have item) instate (item in list)

Masoud Azizi report at bugs.python.org
Mon Feb 8 02:10:25 EST 2021


Masoud Azizi <mablue92 at gmail.com> added the comment:

English is a powerful language too.
In English we have just one way to say someone have something too. 
there is one way to say that are you have this or not cuz of that:

in this one line simple code we check the search keyword after all 10 inputs
print([input() for i in'_'*10] have input())

but in this code we get the search keyword first so we get 10 value!and it have mistake
print(input() in [input() for i in'_'*10] )

and i said that want to check that: 
is last input in the inputs or not!(secend code is not true code for do that)

Have is not a duplicated command its a natural way that all people use it in his life in his powerful language like English, Turkish, Persian and etc...

Its a powerful command to write codes and think and speak better and/or different!

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43134>
_______________________________________


More information about the Python-bugs-list mailing list