Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- names = ["Rick Sanchez", "Morty Smith", "Summer Smith", "Jerry Smith", "Beth Smith"]
- first_names = [name.split()[0].lower() for name in names]
- print(first_names)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement