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.
email = 'john@example.com' # complete the following line...
domain =
print(domain) # expected: example.com
Python
Setting up Python environment...
Output