Ok,got the script working almost fine now...The only problem is that the program window closes before we can get a glimpse of the answer...I use SPE under WinXP, and have seen this problem in every script i try...This is the script,as redone by a Smart Caring Dude on this list:
global altura_aeronave, largura_aeronave, comprimento_aeronave, comprimento,largura, altura def compativel(): global altura, altura_aeronave, comprimento, comprimento_aeronave, \ largura, largura_aeronave if not largura <= largura_aeronave: print 'Volume largo demais!' elif not altura <= altura_aeronave: print 'Volume alto demais!' elif not comprimento<=comprimento_aeronave: print 'Volume comprido demais!' def define(): global largura, altura, comprimento largura=input("Por favor informe a largura do volume em cm") altura=input("Por favor informe a altura do volume em cm") comprimento=input("Por favor informe o comprimento do volume em cm") def porao(): global altura_aeronave, largura_aeronave, comprimento_aeronave porao = input("Por favor informe o porão a ser utilizado:1-4") if porao == 1 : altura_aeronave = 111 largura_aeronave = 112 comprimento_aeronave = 211 #You originally had comprimento here? return 1 elif porao == 4: altura_aeronave = 112 largura_aeronave = 113 comprimento_aeronave = 212 #Same here return 1 else: print "Porao inexistente!" if porao(): define() compativel() 2007/1/20, Kent Johnson <[EMAIL PROTECTED]>:
Karl Wittgenstein wrote: > "input('Something') displays the prompt 'Something' and then waits for > input up to a new line. When you enter the input it will execute the > next statement which may be another input()." > It should be so,man,I believe you.But believe me when I say that THIS > DAMN INTERPRETER DOES NOT ACT ACCORDINGLY!!!Sorry for the emotive > caps,it's just frustration biting my ancles...Maybe it's a SPE problem?? > Thank you. Can you describe exactly what you are doing? And please stop with the swear words, they are not appropriate to this list. Kent
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor