+ 1
String methods
https://sololearn.com/compiler-playground/c27qcQIB6118/?ref=app What's the problem with find and count functions , why they're not working??
2 Antworten
+ 7
Everything works properly.
name.find("a") return the index of `a` in the string which is 0.
And name.count("2") output 0 because the string does not contain "2".
+ 2
Thanku so much Gulshan Mahawar 🙏🥂💖