*We thoroughly check each answer to a question to provide you with the most correct answers. Found a mistake? Tell us about it through the REPORT button at the bottom of the page. ***Ctrl+F (Cmd+F) will help you a lot when searching through such a large set of questions.**

The most common answer is:

```
length = int(input(“What is the length?:”))
width = int(input(“What is the width?:”))
area_rectangle = length * width
perimeter_rectangle = 2 * (length + width)
print(“Area: ” + str(area_rectangle) + ” “)
print(“Perimeter: ” + str(perimeter_rectangle) + ” “)
```

To correct your code and ensure it uses standard ASCII quotation marks, here’s the revised version:

```
length = int(input("What is the length?: "))
width = int(input("What is the width?: "))
area_rectangle = length * width
perimeter_rectangle = 2 * (length + width)
print("Area: " + str(area_rectangle) + " ")
print("Perimeter: " + str(perimeter_rectangle) + " ")
```

This code will:

- Prompt the user to input the length and width of a rectangle.
- Calculate the area as
`length * width`

. - Calculate the perimeter as
`2 * (length + width)`

. - Print both the area and the perimeter.

## Leave a comment