#The function
defcall_mean(x,y,z):mean=((x+y+z)/3)mean_s=(str(mean))print("\nMean: ",mean)if(mean>100):print("\nWrong input, try again...")else:#The statement
if((mean<=100andmean>=90)):if(mean_s[1]>='5'):print("A+")else:print("A-")elif((mean<90andmean>=80)):if(mean_s[1]>='5'):print("B+")else:print("B-")elif((mean<80andmean>=70)):if(mean_s[1]>='5'):print("C+")else:print("C-")elif((mean<70andmean>=60)):if(mean_s[1]>='5'):print("D+")else:print("D-")elif((mean<60andmean>=0)):if(mean_s[1]>='5'):print("F+")else:print("F-")#Three value from input
x=int(input("first int: "))y=int(input("second int: "))z=int(input("third int: "))#Call the function
call_mean(x,y,z)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Python