I'm trying to get one single word out of a string if it contains a certain character.
I want to do something like this:
string = 'My email is email@example.com and I use it a lot.'
if '@' in string:
return email
But how can I get python to know exactly where the keyword is and return it's value.
In this case it would return email@example.com