Easiest way to calculate number of character in string

claude.henchoz at gmail.com claude.henchoz at gmail.com
Wed Dec 21 09:25:01 EST 2005


should = 42
has = Zeile.count(';')
if has < should:
	Zeile += ";"*(should - has)

cheers, claude




More information about the Python-list mailing list