You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Have the function ExOh(str) take the str parameter being passed and return the string true if there is an equal number of x's and o's, otherwise return the string false. Only these two letters will be entered in the string, no punctuation or numbers. For example: if str is "xooxxxxooxo" then the output should return false because there are 6 x's and 5 o's.
# Use the Parameter Testing feature in the box below to test your code with different arguments.
def ExOh(str):
return "true" if str.count("x") == str.count("o") else "false"
# keep this function call here
# to see how to enter arguments in Python scroll down