lundi 15 juillet 2019

problem on my algorithm in if , elif python

i have some problem with algorithm, i have three choices every choice have another choices. well in my code have 3 choice and every choice have anothe choices. every choice have another data how can i solve it? i must make 36 if and elif or something

def througput
    print("---------------menghitung througput Tower-------------------")
    print ("====Plih band====")

    print("[1]. 5 MHz, 25 RB")
    print("[2]. 10 MHz, 50 RB")
    print("[3]. 3 MHz, 75 RB")
    print("[4].  MHz, 100 RB")
    band =  input ("masukan pilihan (RB bandwith) : ")

    print ("====Plih Modulasi====")
    print("[1]. 64QAM")
    print("[2]. 16QAM")
    print("[3]. QPSK")
    mod =  input ("masukan pilihan (bits/symbol) : ")


    print ("====Plih Antena====")
    print("[1]. SISO")
    print("[2]. 2x2 MIMO")
    print("[3]. 4x4 MIMO")
    anten = input ("masukan pilihan (Pengali Antena: ")

Aucun commentaire:

Enregistrer un commentaire