Professional Documents
Culture Documents
ΑΛΓΟΡΙΘΜΟΣ ΠΑΙΧΝΙΔΙΟΥ - ΜΑΝΤΕΨΕ ΤΟΝ ΑΡΙΘΜΟ
ΑΛΓΟΡΙΘΜΟΣ ΠΑΙΧΝΙΔΙΟΥ - ΜΑΝΤΕΨΕ ΤΟΝ ΑΡΙΘΜΟ
#encoding:utf-8
import random
x = random.randint(1,100)
vrethike = False
if x == g:
print "ΤΟ ΒΡΗΚΕΣ"
vrethike = True
elif x < g:
print "ΜΙΚΡΟΤΕΡΟΣ Ο ΑΡΙΘΜΟΣ ΠΟΥ ΨΑΧΝΕΙΣ"
else:
print "ΜΕΓΑΛΥΤΕΡΟΣ Ο ΑΡΙΘΜΟΣ ΠΟΥ ΨΑΧΝΕΙΣ"