Look at this for using code tags.
To make that code work need to set some variables.
To make that code work need to set some variables.
height = 10 width = 15 area = height * width # Display the output print('The area of the rectangle = ' + str(area) + ' sq. units') # Or the better way use f-string print(f'The area of the rectangle = {area} sq. units')
Output:The area of the rectangle = 150 sq. units
The area of the rectangle = 150 sq. units
A quick look at the task so should you make function of this,look at some tutorials about making functions in Python.