[Zope] string n times

Jorge Magalhaes jmagalhaes@eng.uminho.pt
Tue, 25 Apr 2000 14:47:44 +0100 (WET)


Hi:

How i can repeat a string n times.  For example in  perl i can do:

            "*" x $score  ($score is a integer)

and if $score=10 i have ********** . 

I tried use it for make histograms.

For example:

	Student_ID	Score
	------------------------------------------
	1030		*****************
	1031		*******************
	1032		************
	1033		************************
	__________________________________________
	Mean		****************
	-------------------------------------------

-- 
+----------------------------------------------------------------------+
| Jorge Magalhães                 Email:     jmagalhaes@eng.uminho.pt  |
| Quinta do Calvário, bloco 14    Telemóvel: 966172200                 |
| 2º Direito Trás                 Fax:       + 351 253 516007          |
| 5400 Chaves                     Phone:     + 351 276 333008          |
| Portugal                        Email:     jorgemagalhaes@clix.pt    |
+----------------------------------------------------------------------+