Run ❯
Get your
own Python
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
txt = "I love apples, apple are my favorite fruit" x = txt.count("apple") print(x)
x
txt
=
"I love apples, apple are my favorite fruit"
x
=
txt
.
count
(
"apple"
)
print
(
x
)
2