Guided Project: 1, required logic behind defined function

image

Hi
In above function, why we have used “rows_and_columns=False” false being default argument?? What is the logic?

Is this all function code?

If it is then it doesn’t matter that it is true or false as we are not using rows_and_columns parameter in the logic.

image

Hi
above is the complete code.

1 Like

As you can see here

image

If we will pass rows_and_columns as True then it will print number of rows and column like

If rows_and_columns is False then it will just print records like