

Hãy luôn nhớ cảm ơn và vote 5*
nếu câu trả lời hữu ích nhé!
ten = str(input("Nhap ten hoc sinh: "))
v = int(input("Nhap diem van: "))
t = int(input("Nhap diem toan: "))
a = int(input("Nhap diem anh: "))
tb = (v+t+a)/3
xep_loai = ""
if tb>=9.0:
xep_loai = "Gioi"
else:
if (tb<9.0) and (tb>=7.0):
xep_loai = "Kha"
else:
if (tb<7.0) and (tb>=5.0):
xep_loai = "Trung binh"
else:
xep_loai = "Yeu"
print("Hoc sinh ",ten,": Diem trung binh ",int(tb),"| Xep loai ",xep_loai)
Hãy giúp mọi người biết câu trả lời này thế nào?
![]()
hoten = input('nhap ho ten: ')
dvan = float(input('nhap diem van: '))
dtoan = float(input('nhap diem toan: '))
dtanh = float(input('nhap diem tieng anh: '))
dtb = (dvan+dtoan+dtanh)/3
if (dtb>=9):
xl = "gioi"
elif (dtb>=7):
xl = "kha"
elif (dtb>=5):
xl = "trung binh"
else:
xl = "yeu"
print(hoten,dtb,xl)
`@Daoanhviet96`
Hãy giúp mọi người biết câu trả lời này thế nào?
Bảng tin
1
20
2
Chưa test vẫn vote 5 sao ok nhé bro