views:

35

answers:

1

In the following how to count the number of times that __TEXT__ appears in the variable sing python

    a="This is __TEXT__ message to test __TEXT__ message"
+4  A: 

a.count("__TEXT__")

Eric Snow