Python Program to Convert Uppercase to Lowercase

Python Program to Convert Uppercase to Lowercase

Python program to convert all string, letters or characters uppercase to lowercase; In this tutorial you learn how to convert python strings (all letters) uppercase to lowercase.

How to convert uppercase to lowercase in python?

You can use python built-in method name str.lower(), which converts all uppercase string characters/letters to lowercase in python.

In this post, also you will learn what is the syntax of lower.case, what parameter accepts lower() method, and what is the return value of lower() method in python, etc.

Python has many built-in functions/methods for manipulation with strings, which you can check here (python string methods).

1: Convert uppercase to lowecase in python with using the function

You can use the Python string method/function that name lower(), This method converts all letters or characters of string uppercase to lowercase.

The syntax of lower() method is:

string.lower()

String lower() Parameters()

The lower() method doesn’t take any parameters.

Return value from String lower()

The lower() method returns the lowercased string from the given string. It converts all uppercase characters to lowercase.

Example 1: write a program to convert all uppercase to lowercase characters in python

# example string
string = "THIS IS FIRST EXAMPLE OF CONVERT STRING UPPERCASE TO LOWERCASE STRING"
print(string.lower())

#Output
#this is first example of convert string uppercase to lowercase string

The output of above python program is:

this is first example of convert string uppercase to lowercase string

Recommended Python Programs

  1. Convert String Lowercase to Uppercase in Python
  2. Python First Character of String Uppercase
  3. Python Concatenate String and Variable (int, float, etc)
  4. How to Find Length of String in Python
  5. Python: String Join Function
  6. Python String Append Examples
  7. How to replace a character in a string in python
  8. Python – Count Number of Occurrences in String
  9. Python Remove Last Character from String
  10. Python Remove Character From String
  11. Python Program to Reverse String
  12. Python Program to Remove First Occurrence of Character in a String
  13. Python: Remove Special Characters from String
  14. Python Program Count vowels in String
  15. Python Split a String into Array of Characters, Space
  16. Python Program to Swap Two Character of Given String
  17. Python Program String Find
  18. Python: Two Given Strings and Swap First Two Characters of Each String
  19. Print All Permutations of Given String in Python
  20. Python | Check Whether a String Contains Number or Letter
  21. Python: Convert String to Float & Float to String
  22. Python Program to Reverse String Using Stack
  23. How To Convert Python Int to String and String to Int
  24. Python Convert String to List and List to String

AuthorAdmin

My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of Tutsmake.com. I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Python, Javascript, JQuery, Laravel, Livewire, Codeigniter, Node JS, Express JS, Vue JS, Angular JS, React Js, MySQL, MongoDB, REST APIs, Windows, Xampp, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL and Bootstrap from a starting stage. As well as demo example.

Leave a Reply

Your email address will not be published. Required fields are marked *