Q.

What is the output of the following program?
import string
import string
Line1 = "And Then There Were None"
Line2 = "Famous In Love"
Line3 = "Famous Were The Kol And Klaus"
Line4 = Line1 + Line2 + Line3
print(string.find(Line1, 'Were'), string.count((Line4), 'And'))

A. True 1
B. 15 2
C. (15, 2)
D. True 2
Answer» C. (15, 2)
1.3k
0
Do you find this helpful?
3

View all MCQs in

Python Programming

Discussion

No comments yet