Your C code doesn’t contain two return statements. Neither should your python code… The translation of your ternary expression is n if n<m else m, so just use that expression when you return the value:
def minn(n,m):
return n if n<m else m
Your C code doesn’t contain two return statements. Neither should your python code… The translation of your ternary expression is n if n<m else m, so just use that expression when you return the value:
def minn(n,m):
return n if n<m else m