Azumaril$ Posted March 23, 2011 Share Posted March 23, 2011 Hello pedia prin ligi ora arxisa python kai telos panton tora piramatizome.Min ta polilogo exoume: #Blabla arithmos = 50 tixeros = int(input('Valte enan akereo arithmo: ')) if tixeros == arithmos: print(' to petixes ') elif tixeros < arithmos: print ( 'ine ligo megaliteros') else: print (' ine ligo mikroteros') print ('telos') tora omos to "telos" tha to emfanizei mono otan ine mikroteros , mporw na to valo to print('telos') se ola na to emfanizei ok...ala kai kapws alios tha ginete. gia paradigma auto to programma parapanw kai isos na ine kai mikroteros kai megaliteros na bgazei TELOS . ALA XORIS NA TO KANW ETSI: #Blabla arithmos = 50 tixeros = int(input('Valte enan akereo arithmo: ')) if tixeros == arithmos: print(' to petixes ') print ('telos') elif tixeros < arithmos: print ( 'ine ligo megaliteros') print ('telos') else: print (' ine ligo mikroteros') print ('telos') Pws tha to kanw? Quote Link to comment Share on other sites More sharing options...
ProJecT Posted March 23, 2011 Share Posted March 23, 2011 Lower->Completed HTML-> 30% Completed Profisiensy-> Not Completed Java-> 15% Completed Maths-> 50% Working to improve my skills. FAIL Quote Link to comment Share on other sites More sharing options...
Blane Posted March 23, 2011 Share Posted March 23, 2011 #Blabla arithmos = 50 tixeros = int(input('Valte enan akereo arithmo: ')) if tixeros == arithmos: print(' to petixes ') elif tixeros < arithmos: print ( 'ine ligo megaliteros') else: print (' ine ligo mikroteros') print ('telos') Απλά σβήνεις το κενό μπροστά από το τελευταίο print. Αλλιώς το διαβάζει σα να 'ναι στον βρόγχο του else. Quote Link to comment Share on other sites More sharing options...
ProJecT Posted March 23, 2011 Share Posted March 23, 2011 #Blabla arithmos = 50 tixeros = int(input('Valte enan akereo arithmo: ')) if tixeros == arithmos: print(' to petixes ') elif tixeros < arithmos: print ( 'ine ligo megaliteros') else: print (' ine ligo mikroteros') print ('telos') Απλά σβήνεις το κενό μπροστά από το τελευταίο print. Αλλιώς το διαβάζει σα να 'ναι στον βρόγχο του else. Respect! Quote Link to comment Share on other sites More sharing options...
Blane Posted March 23, 2011 Share Posted March 23, 2011 Respect! Μεγάλο προγραμματιστικό τερτίπι λέμε. Quote Link to comment Share on other sites More sharing options...
ProJecT Posted March 23, 2011 Share Posted March 23, 2011 Μεγάλο προγραμματιστικό τερτίπι λέμε. χαχα Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.