On Mon, 28 Dec 2020 at 17:37, Bischoop <bisch...@vimart.net> wrote:
>
> I'd like to check if there's "@" in a string and wondering if any method
> is better/safer than others. I was told on one occasion that I should
> use is than ==, so how would be on this example.
>
> s = 't...@mail.is'

You could do simply

if "@" in s:

but probably what you really want is a regular expression.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to