Computer Science, asked by princysingh1913, 11 months ago

Write the output of the following code.
# !/usr/bin/python
str = "Waltons Technology….wow!!!"
print "str.upper() : "str.upper()

Answers

Answered by codiepienagoya
0

Output of the python code as follows:

Output:

str.upper() :  WALTONS TECHNOLOGY….WOW!!!

Explanation:

  • In the given python code, a string variable "str" is defined, that holds a value, that is "Waltons Technology….wow!!!".
  • In the next step, the print method is used, which uses the upper() method, which is also known as a built-in method.
  • This method converts string value into the upper case and prints its value.

Learn more:

Upper and lower case in python: https://brainly.in/question/7680394

Similar questions