Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
no count xo
""" Create a function that takes a string, checks if it has the same number of "x"s and "o"s and returns either True or False. Return a boolean value (True or False). The string can contain any character. When no x and no o are in the string, return True. """ print("it has the same number of x's and o's") print("enter strings") no=input() if no.count("x")==no.count("o"): print("True") else: print("False")
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Infinite Fibonacci generator
Knn (weights=distance)
Tryme4.py
Itertools-Cartesian-Product-var-args
PyEnDecode
wordchangething
linked_lists
Questions
My world
try1
Please log in to post a comment.