Latest web development tutorials

Python include esercizi 60

Python 100 Li Python 100 Li

Titolo: calcolare la lunghezza della stringa.

Analisi del programma: Nessuno.

Source Code:

#!/usr/bin/python
# -*- coding: UTF-8 -*-

sStr1 = 'strlen'
print len(sStr1)

L'output sopra esempio è:

6

Python 100 Li Python 100 Li