Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

revesing case python

t = "Mr.Brown"
nt = t.swapcase()
print(nt)
#print: mR.bROWN
Comment

opposite case in python

# Python program to demonstrate the use of
# swapcase() method  
  
string = "gEEksFORgeeks"
  
# prints after swappong all cases
print(string.swapcase())   
  
string = "striver" 
print(string.swapcase())
Comment

opposite case in python

# Python program to demonstrate the use of
# swapcase() method  
  
string = "gEEksFORgeeks"
  
# prints after swappong all cases
print(string.swapcase())   
  
string = "striver" 
print(string.swapcase())
Comment

PREVIOUS NEXT
Code Example
Python :: How to find the most similar word in a list in python 
Python :: check how many days old file is python 
Python :: python append to a exiting csv file 
Python :: python oneline if statement 
Python :: python time.sleep 
Python :: difference between == and is 
Python :: python list insert 
Python :: drf serializer unique together 
Python :: django count all objects 
Python :: check if input is pandas dataframe 
Python :: printing coloured and bold text in python 
Python :: python delete column 
Python :: what is cpython 
Python :: matplotlib force scientific notation and define exponent 
Python :: numpy distance of consecutive elements 
Python :: default dictionary value 
Python :: how to use histogram in python 
Python :: RMSE value from cross validation 
Python :: random number list 
Python :: using pypyodbc 
Python :: python serial COM3 
Python :: python plot n numbers from normal distribution 
Python :: get all ForeignKey data by nesting in django 
Python :: speak by a discord bot in python 
Python :: bad request 400 heroku app 
Python :: pyad create user 
Python :: pure imagination 
Python :: clear terminal in python 
Python :: plotting mean in density plot ggplot2 
Python :: python remove first element of list 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =