Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- max_v=0
- sum=0
- c=0
- for i in range (50):
- onoma=raw_input("Dwse onoma: ")
- vathmos=random.randint(1,100)
- if vathmos>max_v:
- max_v=vathmos
- max_n= onoma
- if vathmos>80:
- c=c+1
- sum=sum+vathmos
- print "Max vathmos: ",max_v,"onoma: ",onoma
- print "Mesos oros vathmologias mathitwn: ",sum/50
- print "Mathites pou eixan apo apo 80: ",c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement