[Tutor] for loops

David Rock david at graniteweb.com
Tue Apr 11 19:47:11 CEST 2006


* josip <josipl2000 at yahoo.com> [2006-04-11 09:13]:
>   I have problem with this question.
>   Can someone show me the code and than explain it?
>    
>   >>Write a Python program to print out the following  shape. You are expected to use two for loops (these must be nested) to solve this problem.
>    
>   output:
>   * * * * * 
>   *          *
>   *          *
>   * * * * *

That looks a lot like homework.  If you have a specific question about a
_part_ of code _you_ have written, we'll be glad to help out explaining
those specifics.  

We generally try to stay away from doing the work for you :-)

-- 
David Rock
david at graniteweb.com


More information about the Tutor mailing list