I Have Error "eol While Scanning String Literal"
i dont know what is the problem im junior on python programer what happened on my code i study but i dnt understand this #fungsi coverage def coverage (): print('[1] Kota Be
Solution 1:
So many syntax issues in your code. Here is a working code, all are very minor things like double quotes, semi column, brackets
#fungsi coverage
def coverage ():
print("[1] Kota Besar")
print("[2] Kota suburban")
kota = input("PILIH KOTA")
if int (kota) == 1:
frekuensi = input("Masukan Frekuensi : ")
if int (frekuensi)<300:
htower = float(input("input Tinggi tower : "))
hpengguna =float (input("input Tinggi Pengguna : "))
pathloss = float (input ("input Median Pathloss : "))
logahre = math.log(1.54 * hpengguna, 10)**2
ahre = 8.29 * logahre - 1.1
logfrek = math.log(frekuensi, 100)
loghte = math.log(htower, 10)
pangkat = (-69.55-26.16*logfrek+13.82*loghte+ahre+pathloss)/44.9-(6.55 * loghte)
print ("%s"%pangkat)
Post a Comment for "I Have Error "eol While Scanning String Literal""