Created
June 1, 2021 03:56
-
-
Save sibil/9aa328937f663b376cefc37b244dac38 to your computer and use it in GitHub Desktop.
Home work - string slicing
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
def getFirstNameFromFullName(full_name): | |
# write the code to get the first name | |
# and assign it to the variable first_name | |
return first_name | |
name = "Abdullah Al Rajeh" | |
print("First name is : "+ getFirstNameFromFullName(name) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment