πŸ“Š Python
Q. What is the output of the following code?
Code:
print(max('welcome to mcqbuddy.com'))
  • (A) x
  • (B) w
  • (C) y
  • (D) .
πŸ’¬ Discuss
βœ… Correct Answer: (C) y

Explanation: Python considers ‘z’ as the maximum value in a string and ‘space’ as the minimum value.

Explanation by: Rajeev Malhotra
Python considers ‘z’ as the maximum value in a string and ‘space’ as the minimum value.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
270
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Rajeev Malhotra
Publisher
πŸ“ˆ
95%
Success Rate