Tell us what’s happening:
I dont understand what i need to do i dont understand what they mean with sign the string sARaH dAVis with two leading spaces and two trailing spaces.
Your code so far
email = 'alice.johnson@company.com'
print(f'Email: {email}')
at_position = email.find('@')
print(f'Position of @: {at_position}')
username = email[:at_position]
print(f'Username: {username}')
has_at = '@' in email
print(f'Has @ symbol: {has_at}')
has_com = '.com' in email
print(f'Has .com: {has_com}')
messy_name = "sARaH dAVis"
# User Editable Region
print(f"Original name: ' {messy_name} '")
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.0.0 Safari/537.36 OPR/137.0.0.0 (Edition std-2)
Challenge Information:
Build an Employee Profile Validator - Step 7