What is the result of "hello".upper() in Python?
-
A
"hello"
-
B
"HELLO"
Correct answer
-
C
"Hello"
-
D
Error
Correct answer
B. "HELLO"
15 views
Explanation
The upper() method converts all characters in a string to uppercase.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ