************************************
*** *** *** *** *** ***
*** *** *** *** *** ***
*** *** *** *** *** ***
*** *** *** *** *** ***
************************************
I know I need to use for loops so I was thinking:
for i in range (0,1):
print ('*' * 36)
for i in range (2,4):
print ('*** ' *6)
for i in range (4,6):
print (' ***' *6)
for i in range (6,7):
print ('*' * 36)
This generates the required output but is there a simpler way to do this with less code/fewer for statements? Help is appreciated thank you.
Required Output came out incorrectly. This is what it should be:
'*' * 36
'*** ' * 6
'*** ' * 6
' ***' * 6
' ***' * 6
'*' * 36
MOD EDIT: Fixed code tags. The proper way to use code tags:
This post has been edited by JackOfAllTrades: 13 November 2011 - 04:11 PM

New Topic/Question
Reply



MultiQuote




|