Codewars note: classmates’s home work

My Codewars


exercise:


Solution:

def paperwork(n, m):
    return m*n if m>=0 and n>=0 else 0
def paperwork(n, m):
    return max(m,0) * max(n,0)

 

posted @ 2022-07-04 19:04  大序列  阅读(18)  评论(0编辑  收藏  举报