Azumaril$ Posted March 23, 2011 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?
ProJecT Posted March 23, 2011 Posted March 23, 2011 Lower->Completed HTML-> 30% Completed Profisiensy-> Not Completed Java-> 15% Completed Maths-> 50% Working to improve my skills. FAIL
Blane Posted March 23, 2011 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.
ProJecT Posted March 23, 2011 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!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now