Mukit1234

Sentinel_Value

Sep 30th, 2020
849
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. grade_count=0
  2. total=0
  3.  
  4. grade=int(input(f"Please Enter 1 to exit: "))
  5.  
  6. while grade !=1:
  7.     total+=grade
  8.     grade_count +=1
  9.     grade = int(input(f"Please Enter 1 to exit: "))
  10.  
  11.     if grade ==1:
  12.         print(grade_count)
  13.  
  14.         avg=total/grade_count
  15.         print(f"Grade average is {avg}")
RAW Paste Data