Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Function basics
Summary
23. Question 2

Instruction

Perfect! How about this one?

Exercise

The template presents another exercise from the previous part, where you had to create a pattern like this:

-=-=-=-=-=-=
=-=-=-=-=-=-
-=-=-=-=-=-=
=-=-=-=-=-=-
-=-=-=-=-=-=
=-=-=-=-=-=-
-=-=-=-=-=-=
=-=-=-=-=-=-

Turn the code into a function named draw_pattern() that takes two arguments: rows and columns, and prints a pattern with the given number of rows and columns. If no values are provided, the default values should be rows=5 and columns=8.