Showing posts with label String upper() Method. Show all posts
Showing posts with label String upper() Method. Show all posts

Saturday, March 10, 2018

String upper() Method


String upper() Method in Python 3


The upper() method returns a copy of the string in which all case-based characters have been uppercased.

Syntax
str.upper()

Return Value
This method returns a copy of the string in which all case-based characters have been uppercased.
Example
#!/usr/bin/python3
str = "this is string example....wow!!!"
print ("str.upper : ",str.upper())

Result
str.upper : THIS IS STRING EXAMPLE....WOW!!!