Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

change case python

_str = "Hello World!"

print(_str.upper()) 	# HELLO, WORLD!

print(_str.lower()) 	# hello, world!

print(_str.swapcase()) 	# hELLO wORLD!
Comment

how to change case of string in python

a = "Hello, World!"
print(a.upper()) 

#Output: HELLO, WORLD!

print(a.lower()) 
##Output:  hello, world!
Comment

PREVIOUS NEXT
Code Example
Python :: concat dataframe from list of dataframe 
Python :: How to Create Caesar Cipher Using Python 
Python :: tensorfow list devices 
Python :: learningrate scheduler tensorflow 
Python :: how to create a new virtualenv 
Python :: format string to 2 decimal places python 
Python :: python find specific file in directory 
Python :: merge two dataframes with common columns 
Python :: python limit float to 2 decimal places 
Python :: matplotlib turn off ticks 
Python :: simple trivia question python 
Python :: 2d array pytho 
Python :: generic type python 
Python :: Concat and Append DFs Python 
Python :: min of numpy array 
Python :: simple time in python 
Python :: how to generate random normal number in python 
Python :: django connection cursor 
Python :: python game engine 
Python :: iterate over list and select 2 values together python 
Python :: promote a row in panda dataframe to header 
Python :: dataframe column data type 
Python :: dataframe fill none 
Python :: Django Check hashed Password 
Python :: how to plot pie chart in python 
Python :: replace character in column 
Python :: django update model 
Python :: select specific rows from dataframe in python 
Python :: numpy matrix 
Python :: what is python used for 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =