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
salarysms
LinkedHashTable Implementation
Recursive Fibonacci
shuru4
Lesson#6
single inheritance
class objects
Reverse number
test4.py
Юра и заселение