Review the following program that extracts the email server domain name. >>> data = 'From stephen.marquard@uct.ac.za Sat Jan 5 09:14:16 2008 ' >>> atpos = data.find('@') >>> print(atpos) 21 >>> sppos = data.find(' ',atpos) >>> print(sppos) 31 >>> host = data[atpos+1 : sppos] >>> print(host) 1. Adapt the program to extract the user name (stephen.marquard) and Copy+Paste the code in the answer 2. Run the adapted program and include a full window screenshot with system time and date in the answer.

A+ Guide To It Technical Support
10th Edition
ISBN:9780357108291
Author:ANDREWS, Jean.
Publisher:ANDREWS, Jean.
Chapter18: Macos, Linux, And Scripting
Section: Chapter Questions
Problem 14TC
icon
Related questions
Question

Review the following program that extracts the email server domain name.

>>> data = 'From stephen.marquard@uct.ac.za Sat Jan 5 09:14:16 2008 ' >>> atpos = data.find('@')

>>> print(atpos)

21

>>> sppos = data.find(' ',atpos)

>>> print(sppos)

31 >>> host = data[atpos+1 : sppos]

>>> print(host)

1. Adapt the program to extract the user name (stephen.marquard) and Copy+Paste the code in the answer
2. Run the adapted program and include a full window screenshot with system time and date in the answer.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Public key encryption
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A+ Guide To It Technical Support
A+ Guide To It Technical Support
Computer Science
ISBN:
9780357108291
Author:
ANDREWS, Jean.
Publisher:
Cengage,