Python String upper() MethodPython upper() method converts all the character to uppercase and returns a uppercase string. SignatureParametersNo parameters ReturnIt returns a string. Let's see some examples of upper() method to understand it's functionality. Python String upper() Method Example 1First see a simple example of upper() method. This method returns a uppercase string. Output: HELLO JAVATPOINT Python String upper() Method Example 2See, how can we use this method in programming. The below example converts all the elements of the list into uppercase. See the example. Output: IRFAN SOHAN MOHAN Python String upper() Method Example 3An example that converts all the string into uppercase which starts with vowels. See the example below. Output: IRFAN AMAN Next TopicPython Strings |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India