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
P
Lesson4
Distance between latititude and longitude
Student
List comprehension, join, split, zip
lambda list map
ASICC art
Bubble sort
try
First