# CSPT25 Lecture 1 ``` """ Create a function that returns a list of strings that are sorted alphabetically """ def sortList(someList): return sorted(someList) """ 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. Examples: - XO("ooxx") ➞ True - XO("xooxx") ➞ False - XO("ooxXm") ➞ True (Case insensitive) - XO("zpzpzpp") ➞ True (Returns True if no x and o) - XO("zzoo") ➞ False """ def XO(txt): lowerTxt = txt.lower() return lowerTxt.count("x") == lowerTxt.count("o") print(XO("ooxx")) print(XO("xooxx")) print(XO("ooxXm")) print(XO("zpzpzpp")) ```