Extracting Domain from Email
Extract the domain (
example.com
) from the email below. Use str.split()
to divide the email at the appropriate position, and then use string indexing to select the domain part.Premium
Python
Setting up Python environment...
Output