Tutorial Gateway

  • C
  • C#
  • Java
  • Python
  • SQL
  • MySQL
  • Js
  • BI Tools
    • Informatica
    • Talend
    • Tableau
    • Power BI
    • SSIS
    • SSRS
    • SSAS
    • MDX
    • R Tutorial
    • QlikView
  • More
    • C Programs
    • C++ Programs
    • Python Programs
    • Java Programs
    • SQL FAQ’s

Python lower

by suresh

The Python lower function is a Python String function that converts the given string into Lowercase letters and returns a new string. Let us see how to convert a string to lowercase using lower Function in Python Programming with example.

The syntax of the lower function in Python Programming Language for a lowercase string is

String_Value.lower()

Python lower function Example

The following set of examples help to understand how to convert a string to lowercase using the string lower function.

TIP: The string lower Function keep the Non-letters unchanged.

# Python string lower() Method Example

Str1 = 'Learn PYTHON AT Tutorial GateWay'
Str2 = Str1.lower()
print('First Output of a Lower() method is = ', Str2)

# Observe the Original String
print('Converted String is = ', Str1.lower())
print('Original String is = ', Str1)

# Performing lower() function directly
Str3 = 'PYTHON ProGramming'.lower()
print('Second Output of a Lower() method is = ', Str3)

Str4 = 'PYTHON1234Tutorial'.lower()
print('Third Output of a Lower() method is = ', Str4)

Str5 = '12345'.lower()
print('Third Output of a Lower() method is = ', Str5)

OUTPUT

Python Lower

ANALYSIS

The following statement converts the String variable Str1 into lowercase using the lower function, and prints the output.

Str1 = 'Learn PYTHON AT Tutorial GateWay'
Str2 = Str1.lower()
print('First Output of a Lower() method is = ', Str2)

The Python lower function returns the output in a new string, instead of altering the original string.

# Observe the Original String
print('Converted String is = ', Str1.lower())
print('Original String is = ', Str1)

To change the original String, write the following string lower statement

Str1 = Str1.lower()

The Lowercase String function only converts the letters into lowercase and leave other values unchanged. Within the following lower statements, we used the numeric values along with letters.

Str4 = 'PYTHON1234Tutorial'.lower()
print('Third Output of a Lower() method is = ', Str4)

Str5 = '12345'.lower()
print('Third Output of a Lower() method is = ', Str5)

Placed Under: Python

  • Download and Install Python
  • Python Arithmetic Operators
  • Python Assignment Operators
  • Python Bitwise Operators
  • Python Comparison Operators
  • Python Logical Operators
  • Python If Statement
  • Python If Else
  • Python Elif Statement
  • Python Nested If
  • Python For Loop
  • Python While Loop
  • Python Break
  • Python Continue
  • Python Dictionary
  • Python datetime
  • Python String
  • Python Set
  • Python Tuple
  • Python List
  • Python List Comprehensions
  • Python Lambda
  • Python Functions
  • Python Types of Functions
  • Python Iterator
  • Python File
  • Python Directory
  • Python Class
  • Python classmethod
  • Python Inheritance
  • Python Method Overriding
  • Python Static Method
  • Connect Python and SQL Server
  • Python SQL Create DB
  • Python SQL Select Top
  • Python SQL Where Clause
  • Python SQL Order By
  • Python SQL Select Statement
  • Python len Function
  • Python max Function
  • Python map Function
  • Python print Function
  • Python sort Function
  • Python range Function
  • Python zip Function
  • Python Math Functions
  • Python String Functions
  • Python List Functions
  • Python NumPy Array
  • NumPy Aggregate Functions
  • NumPy Arithmetic Operations
  • Python Numpy Bitwise operators
  • Numpy Comparison Operators
  • Numpy Exponential Functions
  • Python Numpy logical operators
  • Python Numpy String Functions
  • NumPy Trigonometric Functions
  • Python random Array
  • Python Numpy concatenate
  • Python Numpy Array shape
  • Python Pandas DataFrame
  • Pandas DataFrame plot
  • Python Series
  • Python matplotlib Histogram
  • Python matplotlib Scatter Plot
  • Python matplotlib Pie Chart
  • Python matplotlib Bar Chart
  • Python List Length
  • Python sort List Function
  • Python String Concatenation
  • Python String Length
  • Python Substring
  • Python Programming Examples
  • C Tutorial
  • C# Tutorial
  • Java Tutorial
  • JavaScript Tutorial
  • Python Tutorial
  • MySQL Tutorial
  • SQL Server Tutorial
  • R Tutorial
  • Power BI Tutorial
  • Tableau Tutorial
  • SSIS Tutorial
  • SSRS Tutorial
  • Informatica Tutorial
  • Talend Tutorial
  • C Programs
  • C++ Programs
  • Java Programs
  • Python Programs
  • MDX Tutorial
  • SSAS Tutorial
  • QlikView Tutorial

Copyright © 2021 | Tutorial Gateway· All Rights Reserved by Suresh

Home | About Us | Contact Us | Privacy Policy