[Tutor] why doesn't python show error

surya k suryak at live.com
Mon Nov 28 10:53:41 CET 2011


1. Why doesn't python show error(description given below) at the beginning when we use functions which aren't present in the standard modules...

Example: 

TheString = raw_input('enter a string')lengthofStr = strlen(TheString)Look closely, I used a wrong function to find length of the string. [ strlen( ) belongs to C ].When I run the program, it didn't show any error but when entered input, it then showed up!.Why python doesn't show error at the beginning just like C does?2. Why doesn't python create executable file (.exe ) when we run the code.. If this doesn't do, how can I share my program.. does everyone need to have python to check others code and know what it does?  		 	   		  


More information about the Tutor mailing list