You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per the book, the solution must only contain 2 print statements, one which outputs the "#" symbol and the other that outputs the new line("\n"). However in your solution to Exercise 2.2, you've used 2 for loops, one for the top part of the pattern and one for the bottom part. This amounts to 4 print statements. I had the same solution but I couldn't think of a solution in just two print statements, and I was wondering if it is possible to create a mathematical expression that outputs two zeros in a row?
The text was updated successfully, but these errors were encountered:
As per the book, the solution must only contain 2 print statements, one which outputs the "#" symbol and the other that outputs the new line("\n"). However in your solution to Exercise 2.2, you've used 2 for loops, one for the top part of the pattern and one for the bottom part. This amounts to 4 print statements. I had the same solution but I couldn't think of a solution in just two print statements, and I was wondering if it is possible to create a mathematical expression that outputs two zeros in a row?
The text was updated successfully, but these errors were encountered: