What will be the output of the given statement? |
print('Study Trigger 2021".lower().count("t")) |
A) 2
B) 1
C) Generate Error
D) None of the above
Correct Answer: A
Solution :
[a] First it convert "Study Trigger 2021" into lower case i.e. study trigger 2021 and then count total number of "t" in this string. So, the final answer is 2.You need to login to perform this action.
You will be redirected in
3 sec