Advertisement
Guest User

MPELSIS

a guest
Nov 20th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. max_v=0
  2. sum=0
  3. c=0
  4. for i in range (50):
  5. onoma=raw_input("Dwse onoma: ")
  6. vathmos=random.randint(1,100)
  7. if vathmos>max_v:
  8. max_v=vathmos
  9. max_n= onoma
  10. if vathmos>80:
  11. c=c+1
  12. sum=sum+vathmos
  13. print "Max vathmos: ",max_v,"onoma: ",onoma
  14. print "Mesos oros vathmologias mathitwn: ",sum/50
  15. print "Mathites pou eixan apo apo 80: ",c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement