Easiest way to calculate number of character in string

claude.henchoz at gmail.com claude.henchoz at gmail.com
Wed Dec 21 15:25:01 CET 2005


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

cheers, claude




More information about the Python-list mailing list