If else return. Def fun(n): if n > 0: return "п" else: return "o" print(fun(6)).