You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f[0] = int(f[0]) # if f[0] cannot be converted to an integer then ValueError will be raised
f[1] = int(f[1])
# if f[1]==0:
# raise ZeroDivisonError
percent = (f[0]/f[1])*100 # we can use line 7 and 8 (and move percent calculation after the while loop) or this. If f[1] is zero then ZeroDivisionError will be raised