# -*- coding: utf-8 -*- """ Paradeigma me diavasma sigekrimenou plithous kodikon me endiameso amintiko programmatismo oson afora ti morfi tou kodikou @authors: geokoutsiouri katkaranikola stkarlos """ x = raw_input('posous xristes tha eisagoume? ') while not (x.isdigit()): x = raw_input('to plithos ton xriston prepei na einai akeraios.Ksanadose plithos : ') x = int(x) print ' ' print '*******diavasma kodikon********' print ' ' for i in range(0,x): a = raw_input('dose kodiko me toulaxiston ena @ kai 2 akrivos apo tous xaraktires *#9...') while (a.count('@') == 0) or (a.count('*') + a.count('#') + a.count('9')) != 2: print 'ekanes lathos' a = raw_input('ksana dose sosto kodiko: ') print 'o %d os xristis edose kodiko %s' %(i+1,a) print ' '