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
count(even/odd)fromlist.py
Game4
salarysms
python_study_note_while loop
wordchangething
shuru9
Depth First Search - Find if path exists
pico menu
Lesson 8!
GINGERMANZ