Last active
July 14, 2021 05:14
-
-
Save codewithpom/98c9cf0f353466b445a8321db150dd6f to your computer and use it in GitHub Desktop.
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
# create a string variable | |
name = "Padmashree" | |
# print the first charachter of the word | |
print(name[0]) | |
# prints P | |
# print the last charachter of the word | |
print(name[-1]) | |
# prints e | |
# Thats it | |
# Now Have fun |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment