Write the output of the given code #!/usr/bin/python
str = "this is really a string example….wow!!!"
print "Max character: " + max(str)
str = "this is a string example….wow!!!"
print "Max character: " + max(str)
Answers
Answered by
1
HEYA MATE YOUR ANSWER IS
Wow this is really a nice strng
HOPE THIS HELPS ❤️
PLEASE MARK AS BRAINLIEST ❤️❤️
Answered by
0
Max character: y & Max character: x are the output.
Explanation:
Python string method max() is a built-in function returns the highest alphabetical character from the string str.
In the given code snippet,
- str = "this is really a string example….wow!!!"
- print "Max character: " + max(str)
So, the max(this is really a string example….wow!!!) will be y
- str = "this is a string example….wow!!!"
- print "Max character: " + max(str)
So, the max(this is a string example….wow!!!) will be x
Output:
- Max character: y
- Max character: x
Similar questions