You answered

*JUST NOW*Python

STDIN

1, 1, 1, 1

Expected STDOUT

This shape is a square

1

1

Your STDOUT

This shape is a square

1

1

STDIN

4, 2, 4, 2

Expected STDOUT

This shape is a rectangle

8

8

Your STDOUT

This shape is a rectangle

8

8

STDIN

2

Expected STDOUT

This shape is not a rectangle

0

0

Your STDOUT

This shape is not a rectangle

0

0

STDIN

2, 2, 2, 2, 2

Expected STDOUT

This shape is not a rectangle

0

0

Your STDOUT

This shape is not a rectangle

0

0

STDIN

4, 15, 3, 15

Expected STDOUT

This shape is not a rectangle

0

0

Your STDOUT

This shape is not a rectangle

0

0

STDIN

4, 4, 2, 2

Expected STDOUT

This shape is not a rectangle

0

0

Your STDOUT

This shape is not a rectangle

0

0

STDIN

15, 10, 15, 10

Expected STDOUT

This shape is a rectangle

150

150

Your STDOUT

This shape is a rectangle

150

150

STDIN

9, 10, 9, 10

Expected STDOUT

This shape is a rectangle

90

90

Your STDOUT

This shape is a rectangle

90

90

###### Instructor solution

###### Object-Oriented Programming (OOP) in Python presentation (pages 5-7)

By Alec Kretch (Apr 2, 2021)

You may exit out of this review and return later without penalty.