Python Basics

Tobiah toby at tobiah.org
Fri Oct 3 20:34:16 CEST 2014


> Hi Chris
> I can't get the code to display the output as it should.
> I can get it to display like this:
> 122333444455555 or I can get it to display like this:
> 1
> 2
> 2
> 3
> 3
> 3
> 4
> 4
> 4
> 4
> 5
> 5
> 5
> 5
> 5
> but not as has been asked in the question.
> Cheers
> Diarmuid
>


Hint:

>>> 'a' * 4
'aaaa'





More information about the Python-list mailing list