Skip to content

Instantly share code, notes, and snippets.

@codewithpom
Last active July 14, 2021 05:14
Show Gist options
  • Save codewithpom/98c9cf0f353466b445a8321db150dd6f to your computer and use it in GitHub Desktop.
Save codewithpom/98c9cf0f353466b445a8321db150dd6f to your computer and use it in GitHub Desktop.
# 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