CBSE Class 12 Computer Science Question 92 of 105

Python Revision Tour II — Question 19

Back to all questions
19
Question

Question 12

Name the function/method required to

(i) check if a string contains only uppercase letters.

(ii) gives the total length of the list.

Answer

(i) isupper() method is used to check if a string contains only uppercase letters.

(ii) len() gives the total length of the list.