Jump to content

[help]python :P[GR]


Azumaril$

Recommended Posts

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?

Link to comment
Share on other sites

Lower->Completed                              HTML-> 30% Completed

 

Profisiensy-> Not Completed                Java-> 15% Completed

 

                                      Maths-> 50%

 

                              Working to improve my skills.

 

 

FAIL

Link to comment
Share on other sites

#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.

Link to comment
Share on other sites

#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!
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...