nilai = int(input("\nMasukkan jumlah data: "))

print()
data = []
jumlah = 0

for i in range(0, nilai):
    temp = int(input("Masukkan nilai ke-%d: " % (i+1)))
    data.append(temp)
    jumlah += data[i]
    rata_rata = jumlah / nilai

print("\nNilai rata-rata  = %0.2f" % rata_rata)

a7e0e2b3fadf2567b40b376867ab8b4684282607
<mask token>

<mask token>
print()
<mask token>
for i in range(0, nilai):
    temp = int(input('Masukkan nilai ke-%d: ' % (i + 1)))
    data.append(temp)
    jumlah += data[i]
    rata_rata = jumlah / nilai
print("""
Nilai rata-rata  = %0.2f""" % rata_rata)

nilai = int(input("""
Masukkan jumlah data: """))
print()
data = []
jumlah = 0
for i in range(0, nilai):
    temp = int(input('Masukkan nilai ke-%d: ' % (i + 1)))
    data.append(temp)
    jumlah += data[i]
    rata_rata = jumlah / nilai
print("""
Nilai rata-rata  = %0.2f""" % rata_rata)

nilai = int(input("\nMasukkan jumlah data: "))

print()
data = []
jumlah = 0

for i in range(0, nilai):
    temp = int(input("Masukkan nilai ke-%d: " % (i+1)))
    data.append(temp)
    jumlah += data[i]
    rata_rata = jumlah / nilai

print("\nNilai rata-rata  = %0.2f" % rata_rata)
