[Tutor] (no subject)

Korean Panda a.j.h.275 at gmail.com
Tue Sep 8 01:02:33 EDT 2020


Attached is a screenshot of the exercise. So I'm needing help with with
this. I'm getting the code to print the area, but for the purpose of
cleaning up the code style, these commands are still incorrect. Any ideas?

The code I tried is:

def rectangle_area(base, height):
    area = base*height # the area is base*height
    print("The area is " + str(area))

rectangle_area(4, 3)

Here is your output:
The area is 12


More information about the Tutor mailing list