Phoenix85
21-02-2009, 14:49
Ciao, volevo chiedere a chi è più esperto di programmazione una cosa su Python, su delle slide didattiche mi viene scritto che in Python 1 < 'stringa' -> TRUE cosi come [1,2,'a'] < [1,2,4] -> TRUE però andando sulla shell di Python e volendo provare questi dogmi mi viene errore
"Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
1<'stringa'
TypeError: unorderable types: int() < str()"
ora ha ragione la shell o il prof?!?
"Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
1<'stringa'
TypeError: unorderable types: int() < str()"
ora ha ragione la shell o il prof?!?