Aug-04-2019, 09:39 PM
(Aug-04-2019, 08:23 PM)ofir_l Wrote:def ex10(): mark1 = int(input("Insert math score")) mark2 = int(input("Insert Computer Science score")) mark3 = int(input("Insert physics score")) avg = float(mark1+mark2+mark3)/3 print ((“avg=”,avg)) ex10()I get erorr code, avg is not reognized
"invalid character identifier"
Please advice
at line 6 use " instead of “
def ex10(): mark1 = int(input("Insert math score")) mark2 = int(input("Insert Computer Science score")) mark3 = int(input("Insert physics score")) avg = float(mark1+mark2+mark3)/3 print ("avg=",avg) ex10()