This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def rectangle_area(base, height): | |
area = base * height | |
print("The area is " + str(area)) | |
rectangle_area(5,6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def month_days(month, days): | |
print(month, "has", days, "days.") | |
month_days("June","30") | |
month_days("July","31") |