Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
swapcase 1

swapcase

May 10, 2022 by Anurag batra
str_swapcase = "what was that about?".swapcase()
print(str_swapcase)

Here is what the above code is Doing:
1. We create a string variable called str_swapcase.
2. We call the .swapcase() method on the string variable str_swapcase.
3. We print the result of the .swapcase() method.

Categories Python Examples
Post navigation
current datetime pandas
how to create a superuser in django
© MyEduKit - 2022 . All Rights Reserved.