Last active
December 13, 2024 18:04
-
-
Save omarbassam88/a43bfa464b397f3ebf583b3bcb8a1e2e to your computer and use it in GitHub Desktop.
Strings and Lists Exercise
This file contains hidden or 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
| # Write a function that takes the first and last name of the person and print the full name | |
| full_name("Omar", "Bassam") # Omar Bassam | |
| # Write a function to get a string made of the first 2 and the last 2 chars from a given string. | |
| # If the string length is less than 2, return instead of the empty string. | |
| print(start_end("Omar Bassam")) # Omam | |
| print(start_end("Udacity")) # Udty | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment