Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Python swapcase() method Example

Python swapcase() method Example
text1 = "pYTHON tUTORIALS"
print(text1.swapcase())

text2 = "HELLO WORLD"
print(text2.swapcase())

text3 = "welcome to itsmycode"
print(text3.swapcase())

text4 ="12345!!!"
print(text4.swapcase())
Comment

swapping upper case and lower case string python

# swapcase() method 

string = "thE big BROWN FoX JuMPeD oVEr thE LAZY Dog"
print(string.swapcase()) 

>>> THe BIG brown fOx jUmpEd OveR THe lazy dOG
Comment

swap case python

t = "Mr.Brown"
nt = t.swapcase()
print(nt)
Comment

PREVIOUS NEXT
Code Example
Python :: torch.unsqueeze 
Python :: installing django on windows 
Python :: mak a scipy csr sparse matrix 
Python :: divide all the numbers of a list by one number python 
Python :: max sum slice python 1 - autopilot 
Python :: cv2 leave only the biggest blob 
Python :: Define a python function day_of_week, which displays the day name for a given date supplied in the form (day,month,year). 
Python :: the code panda 
Python :: python get unicode spaces 
Python :: tweepy stream extended mode 
Python :: python as-lookup 
Python :: pandas perform action on column 
Python :: convert from python to curl 
Python :: python tcp 
Python :: convert days hours minutes into seconds python 
Python :: launch application from python 
Python :: rename a column 
Python :: select specific columns in sqlalchemy 
Python :: if else condition python 
Python :: dataframe 
Python :: python string: .find() 
Python :: what are tuples in python 
Python :: list from dataframe python 
Python :: py scrapy 
Python :: games made with python 
Python :: phone numbers 
Python :: how to inherit a class in python 
Python :: inheritance in python 
Python :: pandas remove duplicates 
Python :: beautifulsoup docs 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =