Take your code from ice Breaker I and format the print statements to create sentences.
- For example, print(f'My name is {name} and I am {age} years old.')
Create a program that:
- Takes a yahoo email address from user input
- Assigns that input to a variable (email)
- Takes the “@yahoo.com” part off of the address using string indexing and splicing
- Hint: Use the Strings Cheat Sheet
- Assigns the username of the email address to a variable (username)
- Assigns username + ''@gmail.com' to a variable named new_email
- Prints new_email