beginners help

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Thu Feb 7 16:30:44 EST 2008


On Thu, 07 Feb 2008 13:53:48 +0100, Guido van Brakel wrote:

> Hello
> 
> I totally new to python and i'm doing a python course now. Maybe someone
> could help me a little bit here:
> 
> I need to create this script.
> 
> If i enter a center digit like 5 for example i need to create two
> vertical and horzitonal rows that looks like this. If i enter 6 it shows
> 6 six starts. How can i do this, because i don't have any clue.
> 
> *****
> *   *
> *   *
> *   *
> *****


Start by writing some Python code that draws a horizontal line of stars.
(Hint: "print '*' draws one star.)

Now write some code that draws a column of stars.

Now combine them to draw a square.

Come back when you have some more specific questions.


Regards,



-- 
Steven



More information about the Python-list mailing list