Advertisement
Shahar_Goldenberg

Untitled

Oct 31st, 2021
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. notpassGread = []
  2. passGread = []
  3. for i in range(20):
  4.     gread = int(input("Enter gread: "))
  5.     if gread < 60:
  6.         notpassGread.append(gread)
  7.     else:
  8.         passGread.append(gread)
  9. print("the number of stusned that pass is :{}".format(len(passGread)))
  10. print("the number of stusned that don't pass is :{}".format(len(notpassGread)))
  11. print("avrege of passing gread: {}".format(passGread.sum/len.passGread))
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement