Run Code
|
API
|
Code Wall
|
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
Reverse linked-list in-place
PyFoodVatTip
("Hello,world!")
single_digit
31 dec dil khush
POO I EN PYTHON 3
DICCIONARIO EN PYTHON 3
course 2 steve sch
super and overriding
perform_math.py