##############################################################################
# Python From Scratch
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Site: https://pythonfromscratch.com
#
# File: listing\chapter 08\08.12 - Rectangle function with mandatory and optional parameters.py
# Description: Rectangle function with mandatory and optional parameters
##############################################################################
def rectangle(width, height, character="*"):
line = character * width
for i in range(height):
print(line)