7th Apr 2022, 1:53 PM
S E N I O R
S E N I O R - avatar
2 Answers
+ 2
getting all text before @ from email and adding "@ + newdomain" hope it helps..
7th Apr 2022, 2:25 PM
Jayakrishna 🇼🇳
+ 2
basically it uses the index (the variable created on line 3) to keep the first half of the email (the part that comes before the '@') and then replaces the second half with the new domain that was passed in as an argument to the function edit: I realise that the index section may have caused some confusion - the [:index] just refers to anything before the '@'
7th Apr 2022, 2:26 PM
Shaking Jupiter