This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Turns list of dartmouth emails into formatted emails with first and last name | |
f = open("names.txt") | |
o = open("names_edit.txt", 'w') | |
for email in f.readlines(): | |
email = email.strip() | |
email = email[:-1] # Remove semicolon | |
bracket_email = "<" + email + ">" # Now its like <[email protected]> | |
at_index = email.rfind("@") | |
name = email[0:at_index-3] # get just the jason.s.feng |