print('Hello world!')
# PROGRAM PENGHITUNG NILAI MAHASISWA

nama = input("Nama mahasiswa: ")

tugas = float(input("Nilai tugas: "))
uts = float(input("Nilai UTS: "))
uas = float(input("Nilai UAS: "))

# Menghitung nilai akhir
nilai_akhir = (
    tugas * 0.20 +
    uts * 0.30 +
    uas * 0.50
)

# Menentukan grade
if nilai_akhir >= 85:
    grade = "A"
elif nilai_akhir >= 75:
    grade = "B"
elif nilai_akhir >= 65:
    grade = "C"
elif nilai_akhir >= 50:
    grade = "D"
else:
    grade = "E"

# Menentukan status
if nilai_akhir >= 65:
    status = "LULUS"
else:
    status = "TIDAK LULUS"

# Menampilkan hasil
print("\n===== HASIL NILAI =====")
print("Nama:", nama)
print("Nilai Akhir:", nilai_akhir)
print("Grade:", grade)
print("Status:", status)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: