コード例 #1
0
def Main():

  for key, value in data.items():

    print(key)

    for i in range(0, len(books)):
      for j in range(i+1, len(books)):
        book1 = books[i]
        book2 = books[j]
        arbitrageCalculator(value, book1, book2)
コード例 #2
0
from data import data



while True:
    print("")
    c =input("(L)lihat, : ")

        print("=======Daftar Nilai Mahasiswa=======")
        print("================================================================================================")
        print(" |NO   |     NAMA      |    NIM    |     TUGAS    |     UTS     |       UAS    |    AKHIR     | ")
        print("================================================================================================")
        i = 0
        for x in data.items():
            i += 1
            print(
                " | {6:2}  |  {0:12s} | {1:9s} | {2:11}  | {3:11} | {4:11}  |  {5:11} |".format(x[0], x[1][0], x[1][1],
                                                                                                x[1][2], x[1][3],
                                                                                                x[1][4], i))
            print("============================================================================================")