Skip to content

Instantly share code, notes, and snippets.

@codewithpom
Created July 14, 2021 04:44
Show Gist options
  • Save codewithpom/180b6e83a5433f2cce7ec70ba5ec911b to your computer and use it in GitHub Desktop.
Save codewithpom/180b6e83a5433f2cce7ec70ba5ec911b to your computer and use it in GitHub Desktop.
# declare a string variable
name = "Padmashree"
# print variable name in upper case
print(name.upper())
# print the vriable in lower case
print(name.lower())
# directly print a word in lower case
print("Hello World".lower())
# directly print a word in upper case
print("Hello World".upper())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment