Question: This is python coding question using Jupyter Lab. Please answer it. Write code to print a grid of 5 rows with 4 '*' characters in
This is python coding question using Jupyter Lab.
Please answer it.
Write code to print a grid of 5 rows with 4 '*' characters in each row using nested for loops. This is a case where the solution cell is "capturing" what your code prints, so your solution must replace the comment and the raise exception at the same level of indentation. This allows the capture of the print and checking in the following cell to see if your solution is correct.
assert ( printed.getvalue() == '**** **** **** **** **** ' or printed.getvalue() == '**** **** **** **** ****' )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
