Write the output of the following code.
# !/usr/bin/python
str = "Waltons Technology….wow!!!"
print "str.upper() : "str.upper()
Answers
Answered by
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
Physics,
5 months ago
Math,
5 months ago
English,
5 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago
Physics,
1 year ago
Math,
1 year ago
Science,
1 year ago