Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 647 Bytes

Beginner_Series_1_School_Paperwork.md

File metadata and controls

43 lines (24 loc) · 647 Bytes

CodeWars Python Solutions


Beginner Series # 1 School Paperwork

Your classmates asked you to copy some paperwork for them. You know that there are 'n' classmates and the paperwork has 'm' pages.

Your task is to calculate how many blank pages do you need.

Example:
paperwork(5, 5) == 25

Note! if n or m < 0 return 0! Waiting for translations and Feedback! Thanks!


Given Code

def paperwork(n, m):
    pass

Solution 1

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

See on CodeWars.com