I am trying to define a function to make the perimeter of a rectangle. Here is the code:
width = input() height = input() def rectanglePerimeter(width, heigh
**The best is to use try except block to get rid of EOF **
try: width = input() height = input() def rectanglePerimeter(width, height): return ((width + height)*2) print(rectanglePerimeter(width, height)) except EOFError as e: print(end="")