Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to make every letter capital in python

my_string = "car"

my_string.upper() # Makes EVERY letter uppercase

print(my_string)

>>> "CAR"



my_string = "car"

my_string.title() # Makes ONLY FIRST letter uppercase and others lowercase

print(my_string)

>>> "Car
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #letter #capital #python
ADD COMMENT
Topic
Name
9+9 =